Manak
2.0.0
|
Let us start by timing the simplest function.
Here the code inside the 'MEASURE' block will be timed. Important thing to remember is that 'MEASURE' block does not change the scope.
There can be any number of 'MEASURE' blocks inside a benchmark case. The time of all the 'Measure' blocks will be sumed.
'MEASURE' blocks can also appear user created function.
'MANAK_ADD_BENCHMARK_WITH_TEMPLATE' creates a parametrized benchmark case. For more information on parametrized benchmarks check Complete guide on Parametrized Benchmarking.