Package com.facebook.LinkBench.generators

Examples of com.facebook.LinkBench.generators.DataGenerator.fill()


  private long doTest(DataGenFactory fact, byte[] buf, Random rng, int trials, double param) {
    DataGenerator gen = fact.make(param);

    long start = System.nanoTime();
    for (int j = 0; j < trials; j++) {
      gen.fill(rng, buf);
    }
    long end = System.nanoTime();
    long timeTaken = end - start;
    return timeTaken;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.