mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix(bench): report pending summary before clearing (#14369)
This commit is contained in:
parent
4cc5b2126a
commit
602097ab6e
3 changed files with 23 additions and 1 deletions
|
@ -76,7 +76,7 @@ itest!(only {
|
|||
});
|
||||
|
||||
itest!(multifile_summary {
|
||||
args: "bench --unstable bench/pass.ts bench/group_baseline.ts",
|
||||
args: "bench --unstable bench/group_baseline.ts bench/pass.ts bench/group_baseline.ts",
|
||||
exit_code: 0,
|
||||
output: "bench/multifile_summary.out",
|
||||
});
|
||||
|
|
20
cli/tests/testdata/bench/multifile_summary.out
vendored
20
cli/tests/testdata/bench/multifile_summary.out
vendored
|
@ -1,8 +1,28 @@
|
|||
Check [WILDCARD]/bench/group_baseline.ts
|
||||
Check [WILDCARD]/bench/pass.ts
|
||||
Check [WILDCARD]/bench/group_baseline.ts
|
||||
cpu: [WILDCARD]
|
||||
runtime: deno [WILDCARD] ([WILDCARD])
|
||||
|
||||
[WILDCARD]/bench/group_baseline.ts
|
||||
benchmark time (avg) (min … max) p75 p99 p995
|
||||
---------------------------------------------------- -----------------------------
|
||||
noop [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD]
|
||||
noop2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD]
|
||||
|
||||
summary
|
||||
noo[WILDCARD]
|
||||
[WILDCARD]x times [WILDCARD] than noo[WILDCARD]
|
||||
|
||||
noop3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD]
|
||||
parse url 2x [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD]
|
||||
parse url 6x [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD]
|
||||
|
||||
summary
|
||||
parse url 2x
|
||||
[WILDCARD]x times slower than noop3
|
||||
[WILDCARD]x times faster than parse url 6x
|
||||
|
||||
[WILDCARD]/bench/pass.ts
|
||||
benchmark time (avg) (min … max) p75 p99 p995
|
||||
------------------------------------------------- -----------------------------
|
||||
|
|
|
@ -178,6 +178,8 @@ impl BenchReporter for ConsoleReporter {
|
|||
use std::sync::atomic::Ordering;
|
||||
static FIRST_PLAN: AtomicBool = AtomicBool::new(true);
|
||||
|
||||
self.report_group_summary();
|
||||
|
||||
self.group = None;
|
||||
self.baseline = None;
|
||||
self.name = String::new();
|
||||
|
|
Loading…
Add table
Reference in a new issue