rusty_benchmark

Crates.iorusty_benchmark
lib.rsrusty_benchmark
version0.1.1
created_at2025-09-03 19:26:09.610514+00
updated_at2025-09-03 19:34:08.720811+00
descriptionSimple micro-benchmarking helper that writes directly to CSV
homepage
repositoryhttps://github.com/muhammad-hassnain/rusty_benchmark
max_upload_size
id1823074
size16,251
MuhammadHassnain (muhammad-hassnain)

documentation

https://docs.rs/rusty_benchmark

README

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...

Commit count: 3

cargo fmt