diff options
| author | evan <github@evan.lol> | 2022-04-20 22:06:39 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-20 21:06:39 +0200 |
| commit | f785ecee1a68faac517a6d35763dd26ef033d722 (patch) | |
| tree | ae0bca3d8cf79088b42b0b8d9a9a5efbe89a27b0 /cli/tests/testdata/bench/clear_timeout.out | |
| parent | 2612b6f20fc21fb92402aa9086d13a7192ae3814 (diff) | |
feat(bench): update API, new console reporter (#14305)
This commit changes "deno bench" subcommand, by updating
the "Deno.bench" API as follows:
- remove "Deno.BenchDefinition.n"
- remove "Deno.BenchDefintion.warmup"
- add "Deno.BenchDefinition.group"
- add "Deno.BenchDefintion.baseline"
This is done because bench cases are no longer run fixed amount
of iterations, but instead they are run until there is difference between
subsequent runs that is statistically insiginificant.
Additionally, console reporter was rewritten completely, to looks
similar to "hyperfine" reporter.
Diffstat (limited to 'cli/tests/testdata/bench/clear_timeout.out')
| -rw-r--r-- | cli/tests/testdata/bench/clear_timeout.out | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cli/tests/testdata/bench/clear_timeout.out b/cli/tests/testdata/bench/clear_timeout.out index 10aa47d75..b66c49718 100644 --- a/cli/tests/testdata/bench/clear_timeout.out +++ b/cli/tests/testdata/bench/clear_timeout.out @@ -1,8 +1,10 @@ Check [WILDCARD]/bench/clear_timeout.ts -running 3 benches from [WILDCARD]/bench/clear_timeout.ts -bench bench1 ... 1000 iterations [WILDCARD] ns/iter ([WILDCARD]..[WILDCARD] ns/iter) ok ([WILDCARD]) -bench bench2 ... 1000 iterations [WILDCARD] ns/iter ([WILDCARD]..[WILDCARD] ns/iter) ok ([WILDCARD]) -bench bench3 ... 1000 iterations [WILDCARD] ns/iter ([WILDCARD]..[WILDCARD] ns/iter) ok ([WILDCARD]) - -bench result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD]) +cpu: [WILDCARD] +runtime: deno [WILDCARD] ([WILDCARD]) +[WILDCARD]/bench/clear_timeout.ts +benchmark time (avg) (min … max) p75 p99 p995 +------------------------------------------------- ----------------------------- +bench1 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] +bench2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] +bench3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] |
