This is a benchmarking library for Rust, designed to measure and record the performance of code snippets with minimal overhead.
Currently, this is a WIP.
For now you are probably interested in:
- "Bench::measure" -> Warmups with 200 and measure an average of 1000 runs.
- "Bench::measure_with_custom_runs_and_warmup" -> Allows specifying the number of runs and warmup iterations.
- "Bench::next_run" -> Closes the current run and starts a new one.
- "Bench::save_to_csv" -> Does path validation , allows directory only in current directory (need to be tested vigorously) , stores results in a CSV file.
Note: I think currently it cannot handle functions that mutates variables by reference, for example if the functions append a number to list , with this we will be appending the list multiple times.? Need to figure that out...