Skip to content

Commit

Permalink
Changing output of Roofit benchmark to more convinient microseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura authored and vgvassilev committed Nov 3, 2017
1 parent 8b438b1 commit 87ab1e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions root/roofit/roofit/RooFitBinnedBenchmarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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();

0 comments on commit 87ab1e4

Please sign in to comment.