MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / walltime_exec_harness

Function walltime_exec_harness

tests/executors.rs:256–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254
255#[test]
256fn walltime_exec_harness() {
257 let _guard = Mode::Walltime { profiler: true }.acquire();
258 codspeed()
259 .args([
260 "exec",
261 "--mode",
262 "walltime",
263 "--skip-upload",
264 "--enable-profiler",
265 ])
266 .args(["--warmup-time", "0s", "--max-rounds", "3"])
267 .args(["--", "echo", "Hello, World!"])
268 .assert()
269 .success();
270}
271
272/// exec-harness measures the command from its own process, so its part
273/// must declare the pid of the spawned process that ran the benchmark.

Callers

nothing calls this directly

Calls 3

codspeedFunction · 0.85
acquireMethod · 0.80
argsMethod · 0.80

Tested by

no test coverage detected