All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carrotsearch.junitbenchmarks.SingleResult Maven / Gradle / Ivy

Go to download

A framework for writing performance micro-benchmarks using JUnit4 annotations, forked from https://github.com/carrotsearch/junit-benchmarks.

There is a newer version: 0.7.4-scijava
Show newest version
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