diff options
author | evan <github@evan.lol> | 2022-04-22 14:43:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 13:43:22 +0200 |
commit | 6fad5c33c9dd51a2cb2c1ba1be5312f46835b6c4 (patch) | |
tree | 00380f82137289f06edd5bbaffa824027650b403 /cli/tools | |
parent | 57f7e07c13a1a692602022af4fc32c6ac352bb72 (diff) |
fix(bench): reset reporter context (#14360)
This commit fixes previous file benchmarks leaking into the next file benchmarks summary.
Diffstat (limited to 'cli/tools')
-rw-r--r-- | cli/tools/bench.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/bench.rs b/cli/tools/bench.rs index 0947c2647..9de449d2b 100644 --- a/cli/tools/bench.rs +++ b/cli/tools/bench.rs @@ -178,6 +178,10 @@ impl BenchReporter for ConsoleReporter { use std::sync::atomic::Ordering; static FIRST_PLAN: AtomicBool = AtomicBool::new(true); + self.group = None; + self.baseline = None; + self.name = String::new(); + self.group_measurements.clear(); self.options = Some(mitata::reporter::Options::new( &plan.names.iter().map(|x| x.as_str()).collect::<Vec<&str>>(), )); |