bheisler / criterion.rs

Statistics-driven benchmarking library for Rust
Apache License 2.0
4.52k stars 301 forks source link

Add `Criterion::configure_from` #771

Open one-d-wide opened 6 months ago

one-d-wide commented 6 months ago

Add function to configure Criterion struct from customized command-line arguments. This is needed to reuse standard Criterion cli parser in custom test runners where additional arguments are expected.

For example to run criterion benchmarks in standard rust #[test] harness like that .