()
| 254 | |
| 255 | #[test] |
| 256 | fn 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. |