bench-rs
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
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