bheisler / criterion.rs

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

use cargo bench --verbose instead? #670

Closed wathenjiang closed 1 year ago

wathenjiang commented 1 year ago

The documentation at https://bheisler.github.io/criterion.rs/book/user_guide/command_line_output.html#command-line-output suggests using cargo bench -- --verbose to produce verbose benchmark reports.

However I got an error:

    Finished bench [optimized] target(s) in 0.03s
     Running unittests src/main.rs (target/release/deps/benchmark_test-72758575bf95ad97)
error: Unrecognized option: 'verbose'
error: bench failed, to rerun pass `--bin benchmark_test`

But cargo bench --verbose works well, so it may be a mistake?

wathenjiang commented 1 year ago

I found the docs in https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options, the issse could be closed.