mybench 0.1.4

Simple (and very primitive) benchmarking
Documentation

mybench

Crates.io

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 as prompt: xxx.yy ms

  • bench!(wrapper_func, number_of_repetitions, "prompt") Сalculates average execution time for code inside wrapper_func function for number_of_repetitions repetitions. The result is displayed as prompt: xxx.yy ms

Examples