You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the benchmarks using cargo bench works just fine as expected.
It also prints the typical cargo Running benches/functions.rs (target/release/deps/functions-4227941eb3ee4115) line.
However running that target directly only lists the included benchmarks, it does not run them.
This is a bit confusing if you want to run the benchmark directly in a profiler like samply.
Actually running the benchmarks needs the --bench flag:
It would be nice to actually document that flag, and maybe even provide an example how to run the benchmarks in a profiler like samply, which for me is as simple as running samply record target/release/deps/functions-4227941eb3ee4115 --bench
The text was updated successfully, but these errors were encountered:
Running the benchmarks using
cargo bench
works just fine as expected.It also prints the typical cargo
Running benches/functions.rs (target/release/deps/functions-4227941eb3ee4115)
line.However running that target directly only lists the included benchmarks, it does not run them.
This is a bit confusing if you want to run the benchmark directly in a profiler like
samply
.Actually running the benchmarks needs the
--bench
flag:divan/src/divan.rs
Lines 367 to 376 in 0ff8585
However that flag is not documented at all in the command line flags:
divan/src/cli.rs
Lines 128 to 129 in 0ff8585
It would be nice to actually document that flag, and maybe even provide an example how to run the benchmarks in a profiler like
samply
, which for me is as simple as runningsamply record target/release/deps/functions-4227941eb3ee4115 --bench
The text was updated successfully, but these errors were encountered: