diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-29 23:01:37 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-29 23:01:37 +0000 |
commit | 52dacd92654334403955f968b3e655c88bf33500 (patch) | |
tree | 0590f4e49e3706a13048aa70f18553d2ab00d800 | |
parent | 6ae9221b9c6a5b43b6ebd282764e01a7af55b3e6 (diff) |
use test instead of bench when profiling
this means we only run each benchmark once, which stops us giving more
weight to benchmarks that complete more quickly
-rw-r--r-- | src/crates/candelabra/src/profiler/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crates/candelabra/src/profiler/mod.rs b/src/crates/candelabra/src/profiler/mod.rs index aa53d6c..c8d1fa1 100644 --- a/src/crates/candelabra/src/profiler/mod.rs +++ b/src/crates/candelabra/src/profiler/mod.rs @@ -169,7 +169,7 @@ impl State { let child = Command::new("cargo") .current_dir(&project.source_dir) - .args(["bench", "--bench", name, "--", "--profile-time", "5"]) + .args(["test", "--bench", name]) .env("PROFILER_OUT_DIR", profiler_out_dir.as_ref()) // Where profiler info gets outputted .stdout(Stdio::piped()) .stderr(if log_enabled!(Level::Debug) { |