bench-rs

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

A benchmark library.

Examples

$ cargo test --release --color=always -q --package bench-rs --test bench --no-fail-fast -- --test-threads=1 --nocapture 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