Package gaiasky.test

Class AbstractBenchmark

java.lang.Object
gaiasky.test.AbstractBenchmark
Direct Known Subclasses:
HashBenchmark, ParallelSortBenchmark

public class AbstractBenchmark extends Object
  • Field Details

    • ROUNDS

      protected final int ROUNDS
      Number of rounds for each test.
    • ROUNDS_WARMUP

      protected final int ROUNDS_WARMUP
      Number of warm-up rounds.
    • df

      protected final DecimalFormat df
    • log

      protected Logger log
  • Constructor Details

    • AbstractBenchmark

      protected AbstractBenchmark(int rounds, int roundsWarmup, String loggerName)
  • Method Details

    • mean

      protected double mean(long[] array)
    • stdev

      protected double stdev(long[] array, double mean)
    • pad

      protected String pad(String str, int len)
    • format

      protected String format(double num)
    • formatNumber

      protected String formatNumber(int num, int pad)
    • formatNumber

      protected String formatNumber(int num)