From 87ab1e4b56ee69f0565b731b670cdaa51e1a30a9 Mon Sep 17 00:00:00 2001 From: Oksana Shadura Date: Fri, 3 Nov 2017 08:19:59 +0100 Subject: [PATCH] Changing output of Roofit benchmark to more convinient microseconds --- root/roofit/roofit/RooFitBinnedBenchmarks.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/roofit/roofit/RooFitBinnedBenchmarks.cxx b/root/roofit/roofit/RooFitBinnedBenchmarks.cxx index 1cc3707d..04b3c757 100644 --- a/root/roofit/roofit/RooFitBinnedBenchmarks.cxx +++ b/root/roofit/roofit/RooFitBinnedBenchmarks.cxx @@ -191,7 +191,7 @@ static void BM_RooFit_BinnedTestMigrad(benchmark::State &state) delete pdf; delete nll; } -BENCHMARK(BM_RooFit_BinnedTestMigrad)->DenseRange(1, 4)->UseRealTime(); +BENCHMARK(BM_RooFit_BinnedTestMigrad)->DenseRange(1, 4)->UseRealTime()->Unit(benchmark::kMicrosecond); static void BM_RooFit_BinnedTestMigrad_NChannel(benchmark::State &state) { @@ -230,7 +230,7 @@ static void BM_RooFit_BinnedTestMigrad_NChannel(benchmark::State &state) } //FIXME: suppress output from generating workspaces -//BENCHMARK(BM_RooFit_BinnedTestMigrad_NChannel)->Apply(CustomArguments)->UseRealTime(); +//BENCHMARK(BM_RooFit_BinnedTestMigrad_NChannel)->Apply(CustomArguments)->UseRealTime()->Unit(benchmark::kMicrosecond); static void BM_RooFit_BinnedTestHesse(benchmark::State &state) { @@ -266,7 +266,7 @@ static void BM_RooFit_BinnedTestHesse(benchmark::State &state) delete pdf; delete nll; } -BENCHMARK(BM_RooFit_BinnedTestHesse)->DenseRange(1, 4)->UseRealTime(); +BENCHMARK(BM_RooFit_BinnedTestHesse)->DenseRange(1, 4)->UseRealTime()->Unit(benchmark::kMicrosecond); static void BM_RooFit_BinnedTestMinos(benchmark::State &state) { @@ -302,6 +302,6 @@ static void BM_RooFit_BinnedTestMinos(benchmark::State &state) delete pdf; delete nll; } -BENCHMARK(BM_RooFit_BinnedTestMinos)->DenseRange(1, 4)->UseRealTime(); +BENCHMARK(BM_RooFit_BinnedTestMinos)->DenseRange(1, 4)->UseRealTime()->Unit(benchmark::kMicrosecond); BENCHMARK_MAIN();