Package com.facebook.LinkBench.generators

Examples of com.facebook.LinkBench.generators.DataGenerator


  private static interface DataGenFactory {
    public abstract DataGenerator make(double param);
  }

  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

Related Classes of com.facebook.LinkBench.generators.DataGenerator

Copyright © 2018 www.massapicom. 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.