| Crates.io | rusty_benchmark |
| lib.rs | rusty_benchmark |
| version | 0.1.1 |
| created_at | 2025-09-03 19:26:09.610514+00 |
| updated_at | 2025-09-03 19:34:08.720811+00 |
| description | Simple micro-benchmarking helper that writes directly to CSV |
| homepage | |
| repository | https://github.com/muhammad-hassnain/rusty_benchmark |
| max_upload_size | |
| id | 1823074 |
| size | 16,251 |
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...