From 52dacd92654334403955f968b3e655c88bf33500 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Fri, 29 Mar 2024 23:01:37 +0000 Subject: 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 --- src/crates/candelabra/src/profiler/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3