rusty_benchmark 0.1.1

Simple micro-benchmarking helper that writes directly to CSV
Documentation
  • Coverage
  • 11.11%
    1 out of 9 items documented1 out of 7 items with examples
  • Size
  • Source code size: 15.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 23s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • muhammad-hassnain/rusty_benchmark
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • muhammad-hassnain

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