Package gaiasky.test
Class AbstractBenchmark
java.lang.Object
gaiasky.test.AbstractBenchmark
- Direct Known Subclasses:
HashBenchmark
,ParallelSortBenchmark
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DecimalFormat
protected Logger
protected final int
Number of rounds for each test.protected final int
Number of warm-up rounds. -
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBenchmark
(int rounds, int roundsWarmup, String loggerName) -
Method Summary
-
Field Details
-
ROUNDS
protected final int ROUNDSNumber of rounds for each test. -
ROUNDS_WARMUP
protected final int ROUNDS_WARMUPNumber of warm-up rounds. -
df
-
log
-
-
Constructor Details
-
AbstractBenchmark
-
-
Method Details
-
mean
protected double mean(long[] array) -
stdev
protected double stdev(long[] array, double mean) -
pad
-
format
-
formatNumber
-
formatNumber
-