use of org.openjdk.jmh.results.Result in project cassandra by apache.
the class MutationBench method main.
public static void main(String... args) throws Exception {
Options opts = new OptionsBuilder().include(".*" + MutationBench.class.getSimpleName() + ".*").jvmArgs("-server").forks(1).mode(Mode.Throughput).addProfiler(StackProfiler.class).build();
Collection<RunResult> records = new Runner(opts).run();
for (RunResult result : records) {
Result r = result.getPrimaryResult();
System.out.println("API replied benchmark score: " + r.getScore() + " " + r.getScoreUnit() + " over " + r.getStatistics().getN() + " iterations");
}
}
use of org.openjdk.jmh.results.Result in project h2o-3 by h2oai.
the class H2OResultFormat method writeOut.
@Override
public void writeOut(Collection<RunResult> results) {
SortedSet<String> params = new TreeSet<String>();
for (RunResult res : results) {
params.addAll(res.getParams().getParamsKeys());
}
printHeader(params);
for (RunResult rr : results) {
BenchmarkParams benchParams = rr.getParams();
Result res = rr.getPrimaryResult();
printLine(sha, date, benchParams.getBenchmark(), benchParams, params, res);
for (String label : rr.getSecondaryResults().keySet()) {
Result subRes = rr.getSecondaryResults().get(label);
printLine(sha, date, benchParams.getBenchmark() + ":" + subRes.getLabel(), benchParams, params, subRes);
}
}
}
Aggregations