mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
fix(bench): reset reporter context (#14360)
This commit fixes previous file benchmarks leaking into the next file benchmarks summary.
This commit is contained in:
parent
57f7e07c13
commit
6fad5c33c9
3 changed files with 47 additions and 0 deletions
|
@ -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>>(),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue