root-project / rootbench

Collection of benchmarks and performance monitoring applications
GNU Lesser General Public License v2.1
19 stars 41 forks source link

[RF] Add HistFactory benchmark based of `hf001_example` tutorial #254

Closed guitargeek closed 2 years ago

guitargeek commented 2 years ago

This is a follow up to https://github.com/root-project/root/pull/10562.

The benchmark measures the fit time for the model from the hf001_example tutorial.

Right now, the benchmark output looks as follows:

----------------------------------------------------------------------------------------------
Benchmark                                                    Time             CPU   Iterations
----------------------------------------------------------------------------------------------
hf001__BinnedFitOptimization_ON___BatchMode_OFF/1/0      0.180 ms        0.180 ms         3925
hf001__BinnedFitOptimization_OFF__BatchMode_OFF/0/0       1.25 ms         1.25 ms          553
hf001__BinnedFitOptimization_ON___BatchMode_ON_/1/1       1.29 ms         1.29 ms          518
hf001__BinnedFitOptimization_OFF__BatchMode_ON_/0/1       1.30 ms         1.29 ms          521

After merging the PR with the binned fit optimization in the BatchMode (https://github.com/root-project/root/pull/9423), the timings with the batch mode should reduce significantly.