public class BenchResult extends Object
| Modifier and Type | Field and Description |
|---|---|
long |
emptyRunTime
|
long |
fullTime
The bench time (for all iterations, in nanoseconds).
|
int |
iterations
The number of iterations the bench has been ran to reach the time
specified in
BenchTest.getRunTime(). |
BenchTest |
test
The bench itself.
|
| Constructor and Description |
|---|
BenchResult(BenchTest test,
int iterations,
long emptyRunTime,
long fullTime)
Creates a bench result for the given bench.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBenchTime()
Gets the real bench time for one iteration removing the extra work time.
|
public final long emptyRunTime
public final long fullTime
public final int iterations
BenchTest.getRunTime().public final BenchTest test
public BenchResult(BenchTest test, int iterations, long emptyRunTime, long fullTime)
test - the bench which has produced the resultsfullTime - the full bench time (in nanoseconds)emptyRunTime - the bench time to remove from fullTime
(in nanoseconds)iterations - the number of iterations the bench has been ran.