Add main method to VersionedIntervalTimelineBenchmark (#9404)

This commit is contained in:
Jihoon Son 2020-02-26 12:01:02 -08:00 committed by GitHub
parent e506fc9fdf
commit b924161086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -41,6 +41,11 @@ import org.openjdk.jmh.annotations.Setup;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.results.format.ResultFormatType;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import java.util.ArrayList;
import java.util.List;
@ -267,4 +272,17 @@ public class VersionedIntervalTimelineBenchmark
10
);
}
public static void main(String[] args) throws RunnerException
{
Options opt = new OptionsBuilder()
.include(VersionedIntervalTimelineBenchmark.class.getSimpleName())
.forks(1)
.syncIterations(true)
.resultFormat(ResultFormatType.CSV)
.result("versioned-interval-timeline.csv")
.build();
new Runner(opt).run();
}
}