mybench
Simple (and very primitive) benchmarking macro.
Use cases:
-
bench!(wrapper_func, "prompt") Сalculates average execution time for code inside
wrapper_func
function for 10,000 repetitions. The result is displayed asprompt: xxx.yy ms
-
bench!(wrapper_func, number_of_repetitions, "prompt") Сalculates average execution time for code inside
wrapper_func
function fornumber_of_repetitions
repetitions. The result is displayed asprompt: xxx.yy ms