public final class Result extends Object
Modifier and Type | Field and Description |
---|---|
int |
benchmarkRounds |
long |
benchmarkTime |
Average |
blockedAverage |
Average |
gcAverage |
GCSnapshot |
gcInfo |
Average |
roundAverage |
int |
warmupRounds |
long |
warmupTime |
Constructor and Description |
---|
Result(org.junit.runner.Description description,
int benchmarkRounds,
int warmupRounds,
long warmupTime,
long benchmarkTime,
Average roundAverage,
Average blockedAverage,
Average gcAverage,
GCSnapshot gcInfo,
int concurrency) |
Modifier and Type | Method and Description |
---|---|
String |
getShortTestClassName()
Returns the short version of the test's class.
|
Class<?> |
getTestClass()
Returns the class under test.
|
String |
getTestClassName()
Returns the long version of the test's class.
|
Method |
getTestMethod()
Returns the method under test (or null if not available and couldn't be located).
|
String |
getTestMethodName() |
int |
getThreadCount() |
public final int benchmarkRounds
public final int warmupRounds
public final long warmupTime
public final long benchmarkTime
public final Average roundAverage
public final Average blockedAverage
public final Average gcAverage
public final GCSnapshot gcInfo
public Result(org.junit.runner.Description description, int benchmarkRounds, int warmupRounds, long warmupTime, long benchmarkTime, Average roundAverage, Average blockedAverage, Average gcAverage, GCSnapshot gcInfo, int concurrency)
description
- Target object and method of the test.benchmarkRounds
- Number of executed benchmark rounds.warmupRounds
- Number of warmup rounds.warmupTime
- Total warmup time, includes benchmarking and GC overhead.benchmarkTime
- Total benchmark time, includes benchmarking and GC overhead.roundAverage
- Average and standard deviation from benchmark rounds.gcAverage
- Average and standard deviation from GC cleanups.blockedAverage
- Average and standard deviation from thread blocks.gcInfo
- Extra information about GC activity.concurrency
- BenchmarkOptions.concurrency()
setting (or global override).public String getShortTestClassName()
public String getTestClassName()
public String getTestMethodName()
public Class<?> getTestClass()
public Method getTestMethod()
public int getThreadCount()
Copyright © 2016 Carrot Search s.c.. All rights reserved.