bench-rs 0.2.0

A benchmark library
Documentation

bench-rs

docs.rs GitHub code size in bytes Downloads GitHub Crates.io

A benchmark library.

  • Stable rust (no black_box)
  • Beautiful output
  • Async support
  • Custom async runtime

Examples

$ cargo test --release --color=always -q --package bench-rs --test bench --no-fail-fast

Look ./tests/bench.rs

image.png

black_box

I don't know how to implement the black box.

Please use core::hint::black_box. (unstable)

If you have a better idea, welcome to submit a pull request or open an issue

I am a rust beginner, please correct me if the code is bad. Thank you