()
| 137 | } |
| 138 | |
| 139 | fn codspeed() -> Command { |
| 140 | let mut cmd = Command::new(env!("CARGO_BIN_EXE_codspeed")); |
| 141 | // Forces the local provider; the GitHub Actions one needs a workflow event. |
| 142 | cmd.env_remove("GITHUB_ACTIONS") |
| 143 | .current_dir(std::env::temp_dir()); |
| 144 | cmd |
| 145 | } |
| 146 | |
| 147 | /// `codspeed run` up to the `--` separator. `--allow-empty`: plain scripts |
| 148 | /// produce no benchmark results. |