0
私はアプリケーションに統合ベンチマーキングを開発しています。私はフレームワークとしてJMHを使用したいと思います。JMH:jsonオブジェクトとしてベンチマーク結果を返す
結果をJSONオブジェクトとして受け取るにはどうすればよいですか?
私は、次の実行しているオプションを使用してファイルに保存することができます知っている:
org.openjdk.jmh.runner.options.Options opt = new OptionsBuilder()
.include(WorkerBenBenchmarkObject.class.getSimpleName())
.shouldDoGC(true)
.resultFormat(ResultFormatType.JSON)
.result("benchmark-result/" + System.currentTimeMillis() + ".json")
.addProfiler(StackProfiler.class)
.jvmArgsAppend("-Djmh.stack.period=1")
.warmupIterations(5)
.measurementIterations(5)
.forks(1)
.build();
new Runner(opt).run();
私は、ファイルを読むために必要とせず、この結果を受け取ることができますどのように?