Search in sources :

Example 1 with PerformanceResults

use of com.palantir.atlasdb.performance.PerformanceResults in project atlasdb by palantir.

the class AtlasDbPerfCli method runCli.

private static void runCli(AtlasDbPerfCli cli, ChainedOptionsBuilder optBuilder) throws Exception {
    optBuilder.warmupIterations(1).mode(Mode.SampleTime);
    Collection<RunResult> results = new Runner(optBuilder.build()).run();
    if (cli.outputFile != null) {
        new PerformanceResults(results).writeToFile(new File(cli.outputFile));
    }
}
Also used : Runner(org.openjdk.jmh.runner.Runner) PerformanceResults(com.palantir.atlasdb.performance.PerformanceResults) RunResult(org.openjdk.jmh.results.RunResult) File(java.io.File)

Aggregations

PerformanceResults (com.palantir.atlasdb.performance.PerformanceResults)1 File (java.io.File)1 RunResult (org.openjdk.jmh.results.RunResult)1 Runner (org.openjdk.jmh.runner.Runner)1