diff --git a/root/roofit/roofit/benchCodeSquashAD.cxx b/root/roofit/roofit/benchCodeSquashAD.cxx index add80b24..ebc9648c 100644 --- a/root/roofit/roofit/benchCodeSquashAD.cxx +++ b/root/roofit/roofit/benchCodeSquashAD.cxx @@ -155,12 +155,22 @@ static void BM_RooFuncWrapper_ManyParams_Minimization(benchmark::State &state) int main(int argc, char **argv) { + // If you want to make a more complete scaling study, you can scale up to a larger number of channels: + // #define LARGE_STUDY + +#ifdef LARGE_STUDY std::vector rangeLow{1, 2, 3, 4, 5, 6, 7, 8, 12, 17, 23, 28, 33, 38, 43, 49, 54, 59}; +#else + std::vector rangeLow{1, 3, 5, 7, 12, 23, 33, 43, 54}; +#endif std::vector rangeHigh{64, 70, 75, 80, 85, 90, 96, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 225, 250, 275, 300, 325}; std::vector range; range.insert(range.end(), rangeLow.begin(), rangeLow.end()); + +#ifdef LARGE_STUDY range.insert(range.end(), rangeHigh.begin(), rangeHigh.end()); +#endif // Run the minimization with the reference NLL RooFitADBenchmarksUtils::doBenchmarks("NllReferenceMinimization", Reference, diff --git a/root/roofit/roofit/benchRooFitBackends.cxx b/root/roofit/roofit/benchRooFitBackends.cxx index 5a4b561e..d205e84b 100644 --- a/root/roofit/roofit/benchRooFitBackends.cxx +++ b/root/roofit/roofit/benchRooFitBackends.cxx @@ -22,7 +22,7 @@ #include int printLevel = 0; -size_t nEvents = 100000; +size_t nEvents = 10000; const auto minimizerName = "Minuit2"; enum RunConfig_t { runScalar, runCpu, fitScalar, fitCpu, fitCuda };