diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2022-06-02 03:03:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 03:03:28 +0200 |
commit | 7d9e8baebb6c2534346e0823e2cc6408ebb8b1eb (patch) | |
tree | 1a76d022a268bff487a2c693b25d358b180db1c4 | |
parent | c01fcef93fda43f1ebb0d8838ddbcd5945bb038b (diff) |
chore: fix flaky `integration::bench::multifile_summary` test (#14771)
-rw-r--r-- | cli/tests/testdata/bench/group_baseline.out | 8 | ||||
-rw-r--r-- | cli/tests/testdata/bench/group_baseline.ts | 11 | ||||
-rw-r--r-- | cli/tests/testdata/bench/multifile_summary.out | 16 |
3 files changed, 16 insertions, 19 deletions
diff --git a/cli/tests/testdata/bench/group_baseline.out b/cli/tests/testdata/bench/group_baseline.out index 2f84d6439..7d175ba1b 100644 --- a/cli/tests/testdata/bench/group_baseline.out +++ b/cli/tests/testdata/bench/group_baseline.out @@ -1,6 +1,6 @@ [WILDCARD]/bench/group_baseline.ts -benchmark time (avg) (min … max) p75 p99 p995 ----------------------------------------------------- ----------------------------- +benchmark time (avg) (min … max) p75 p99 p995 +------------------------------------------------------ ----------------------------- noop [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] noop2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] @@ -10,9 +10,9 @@ summary 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] +parse url 200x [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] summary parse url 2x [WILDCARD]x slower than noop3 - [WILDCARD]x faster than parse url 6x + [WILDCARD]x faster than parse url 200x diff --git a/cli/tests/testdata/bench/group_baseline.ts b/cli/tests/testdata/bench/group_baseline.ts index 86c545116..a86f6455c 100644 --- a/cli/tests/testdata/bench/group_baseline.ts +++ b/cli/tests/testdata/bench/group_baseline.ts @@ -8,11 +8,8 @@ Deno.bench("parse url 2x", { group: "url", baseline: true }, () => { new URL("https://deno.land/std/http/server.ts"); }); -Deno.bench("parse url 6x", { group: "url" }, () => { - new URL("https://deno.land/std/http/server.ts"); - new URL("https://deno.land/std/http/server.ts"); - new URL("https://deno.land/std/http/server.ts"); - new URL("https://deno.land/std/http/server.ts"); - new URL("https://deno.land/std/http/server.ts"); - new URL("https://deno.land/std/http/server.ts"); +Deno.bench("parse url 200x", { group: "url" }, () => { + for (let i = 0; i < 200; i++) { + new URL("https://deno.land/std/http/server.ts"); + } }); diff --git a/cli/tests/testdata/bench/multifile_summary.out b/cli/tests/testdata/bench/multifile_summary.out index 568312100..6a8a12102 100644 --- a/cli/tests/testdata/bench/multifile_summary.out +++ b/cli/tests/testdata/bench/multifile_summary.out @@ -5,8 +5,8 @@ cpu: [WILDCARD] runtime: deno [WILDCARD] ([WILDCARD]) [WILDCARD]/bench/group_baseline.ts -benchmark time (avg) (min … max) p75 p99 p995 ----------------------------------------------------- ----------------------------- +benchmark time (avg) (min … max) p75 p99 p995 +------------------------------------------------------ ----------------------------- noop [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] noop2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] @@ -16,12 +16,12 @@ summary 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] +parse url 200x [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] summary parse url 2x [WILDCARD]x slower than noop3 - [WILDCARD]x faster than parse url 6x + [WILDCARD]x faster than parse url 200x [WILDCARD]/bench/pass.ts benchmark time (avg) (min … max) p75 p99 p995 @@ -38,8 +38,8 @@ bench8 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD bench9 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] [WILDCARD]/bench/group_baseline.ts -benchmark time (avg) (min … max) p75 p99 p995 ----------------------------------------------------- ----------------------------- +benchmark time (avg) (min … max) p75 p99 p995 +------------------------------------------------------ ----------------------------- noop [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] noop2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] @@ -49,9 +49,9 @@ summary 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] +parse url 200x [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] summary parse url 2x [WILDCARD]x slower than noop3 - [WILDCARD]x faster than parse url 6x + [WILDCARD]x faster than parse url 200x |