![JAR search and dependency download from the Maven repository](/logo.png)
com.carrotsearch.junitbenchmarks.SingleResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-benchmarks Show documentation
Show all versions of junit-benchmarks Show documentation
A framework for writing performance micro-benchmarks using JUnit4 annotations, forked from https://github.com/carrotsearch/junit-benchmarks.
package com.carrotsearch.junitbenchmarks;
/**
* A result of a single test.
*/
class SingleResult
{
public final long startTime;
public final long afterGC;
public final long endTime;
public final long blockTime;
public SingleResult(long startTime, long afterGC, long endTime, long blockTime)
{
this.startTime = startTime;
this.afterGC = afterGC;
this.endTime = endTime;
this.blockTime = blockTime;
}
public long gcTime()
{
return afterGC - startTime;
}
public long evaluationTime()
{
return endTime - afterGC;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy