pub fn benchmark(output_path: impl AsRef<Path>, rewriter: Rewriter) -> Result<(), Box<dyn Error>> {
// Using which is a bit unnecessary, but it deals nicely with .exe on Windows and can also be used to do other searching.
Rewriter::Jitty | Rewriter::JittyCompiling => Regex::new(r#"rewriting: ([0-9]*) milliseconds."#)?,