com.carrotsearch.junitbenchmarks
Class Result

java.lang.Object
  extended by com.carrotsearch.junitbenchmarks.Result

public final class Result
extends Object

A result of a single benchmark test.


Field Summary
 int benchmarkRounds
           
 long benchmarkTime
           
 Average blockedAverage
           
 Average gcAverage
           
 GCSnapshot gcInfo
           
 Average roundAverage
           
 int warmupRounds
           
 long warmupTime
           
 
Constructor Summary
Result(org.junit.runner.Description description, int benchmarkRounds, int warmupRounds, long warmupTime, long benchmarkTime, Average roundAverage, Average blockedAverage, Average gcAverage, GCSnapshot gcInfo, int concurrency)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

benchmarkRounds

public final int benchmarkRounds

warmupRounds

public final int warmupRounds

warmupTime

public final long warmupTime

benchmarkTime

public final long benchmarkTime

roundAverage

public final Average roundAverage

blockedAverage

public final Average blockedAverage

gcAverage

public final Average gcAverage

gcInfo

public final GCSnapshot gcInfo
Constructor Detail

Result

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)
Parameters:
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).
Method Detail

getShortTestClassName

public String getShortTestClassName()
Returns the short version of the test's class.


getTestClassName

public String getTestClassName()
Returns the long version of the test's class.


getTestMethodName

public String getTestMethodName()
Returns:
Return the test method's name.

getTestClass

public Class<?> getTestClass()
Returns the class under test.


getTestMethod

public Method getTestMethod()
Returns the method under test (or null if not available and couldn't be located).


getThreadCount

public int getThreadCount()


Copyright © 2013 Carrot Search s.c.. All Rights Reserved.