1 unstable release
0.1.0 | Mar 10, 2023 |
---|
#226 in #benchmark
15KB
360 lines
rbenchmark
Library for evaluating the performance of your computer, written in pure Rust
Example
use rbenchmark::prelude::*;
let mut runner = BenchmarkRunner::default();
let result = runner.run_all(|_progress | {}).unwrap();
println!("{:?}", result);
Features
- Write your own
benchmarks
and run them. - Write your own runner for benchmarks
- Set the
time
of the benchmark - Multi-core support
- Adjust which benchmarks to run
- Callback functions
lib.rs
:
rbenchmark is a library for evaluating the performance of your computer, written in pure Rust
Example
use rbenchmark::prelude::*;
let mut runner = BenchmarkRunner::default(); // is slow!
let result = runner.run_all(|_progress | {}).unwrap();
println!("{:?}", result);
Features
- Write your own
benchmarks
and run them. - Write your own runner for benchmarks
- Set the
time
of the benchmark - Multi-core support
- Adjust which benchmarks to run
- Callback functions
Dependencies
~2MB
~43K SLoC