Skip to content

Commit 87ab1e4

Browse files
oshaduravgvassilev
authored andcommitted
Changing output of Roofit benchmark to more convinient microseconds
1 parent 8b438b1 commit 87ab1e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

root/roofit/roofit/RooFitBinnedBenchmarks.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static void BM_RooFit_BinnedTestMigrad(benchmark::State &state)
191191
delete pdf;
192192
delete nll;
193193
}
194-
BENCHMARK(BM_RooFit_BinnedTestMigrad)->DenseRange(1, 4)->UseRealTime();
194+
BENCHMARK(BM_RooFit_BinnedTestMigrad)->DenseRange(1, 4)->UseRealTime()->Unit(benchmark::kMicrosecond);
195195

196196
static void BM_RooFit_BinnedTestMigrad_NChannel(benchmark::State &state)
197197
{
@@ -230,7 +230,7 @@ static void BM_RooFit_BinnedTestMigrad_NChannel(benchmark::State &state)
230230
}
231231

232232
//FIXME: suppress output from generating workspaces
233-
//BENCHMARK(BM_RooFit_BinnedTestMigrad_NChannel)->Apply(CustomArguments)->UseRealTime();
233+
//BENCHMARK(BM_RooFit_BinnedTestMigrad_NChannel)->Apply(CustomArguments)->UseRealTime()->Unit(benchmark::kMicrosecond);
234234

235235
static void BM_RooFit_BinnedTestHesse(benchmark::State &state)
236236
{
@@ -266,7 +266,7 @@ static void BM_RooFit_BinnedTestHesse(benchmark::State &state)
266266
delete pdf;
267267
delete nll;
268268
}
269-
BENCHMARK(BM_RooFit_BinnedTestHesse)->DenseRange(1, 4)->UseRealTime();
269+
BENCHMARK(BM_RooFit_BinnedTestHesse)->DenseRange(1, 4)->UseRealTime()->Unit(benchmark::kMicrosecond);
270270

271271
static void BM_RooFit_BinnedTestMinos(benchmark::State &state)
272272
{
@@ -302,6 +302,6 @@ static void BM_RooFit_BinnedTestMinos(benchmark::State &state)
302302
delete pdf;
303303
delete nll;
304304
}
305-
BENCHMARK(BM_RooFit_BinnedTestMinos)->DenseRange(1, 4)->UseRealTime();
305+
BENCHMARK(BM_RooFit_BinnedTestMinos)->DenseRange(1, 4)->UseRealTime()->Unit(benchmark::kMicrosecond);
306306

307307
BENCHMARK_MAIN();

0 commit comments

Comments
 (0)