diff options
Diffstat (limited to 'cli/tests/testdata/bench')
77 files changed, 0 insertions, 867 deletions
diff --git a/cli/tests/testdata/bench/allow_all.out b/cli/tests/testdata/bench/allow_all.out deleted file mode 100644 index b118856e9..000000000 --- a/cli/tests/testdata/bench/allow_all.out +++ /dev/null @@ -1,21 +0,0 @@ -Check [WILDCARD]/bench/allow_all.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/allow_all.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ------------------------------------------------------------------- ----------------------------- -read false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -read true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -write false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -write true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -net false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -net true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -env false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -env true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -run false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -run true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -ffi false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -ffi true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -hrtime false [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -hrtime true [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/allow_all.ts b/cli/tests/testdata/bench/allow_all.ts deleted file mode 100644 index beb4a450e..000000000 --- a/cli/tests/testdata/bench/allow_all.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { assertEquals } from "../../../../test_util/std/assert/mod.ts"; - -const permissions: Deno.PermissionName[] = [ - "read", - "write", - "net", - "env", - "run", - "ffi", - "hrtime", -]; - -for (const name of permissions) { - Deno.bench({ - name: `${name} false`, - permissions: { - [name]: false, - }, - async fn() { - for await (const n of permissions) { - const status = await Deno.permissions.query({ name: n }); - assertEquals(status.state, "prompt"); - } - }, - }); - - Deno.bench({ - name: `${name} true`, - permissions: { - [name]: true, - }, - async fn() { - for await (const n of permissions) { - const status = await Deno.permissions.query({ name: n }); - if (n === name) { - assertEquals(status.state, "granted"); - } else { - assertEquals(status.state, "prompt"); - } - } - }, - }); -} diff --git a/cli/tests/testdata/bench/allow_none.out b/cli/tests/testdata/bench/allow_none.out deleted file mode 100644 index 7c443075b..000000000 --- a/cli/tests/testdata/bench/allow_none.out +++ /dev/null @@ -1,22 +0,0 @@ -Check [WILDCARD]/bench/allow_none.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/allow_none.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -read error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -write error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -net error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -env error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -run error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -ffi error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -hrtime error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/allow_none.ts b/cli/tests/testdata/bench/allow_none.ts deleted file mode 100644 index e723ed868..000000000 --- a/cli/tests/testdata/bench/allow_none.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { unreachable } from "../../../../test_util/std/assert/mod.ts"; - -const permissions: Deno.PermissionName[] = [ - "read", - "write", - "net", - "env", - "run", - "ffi", - "hrtime", -]; - -for (const name of permissions) { - Deno.bench({ - name, - permissions: { - [name]: true, - }, - fn() { - unreachable(); - }, - }); -} diff --git a/cli/tests/testdata/bench/before_unload_prevent_default.out b/cli/tests/testdata/bench/before_unload_prevent_default.out deleted file mode 100644 index dcb6d8194..000000000 --- a/cli/tests/testdata/bench/before_unload_prevent_default.out +++ /dev/null @@ -1,7 +0,0 @@ -cpu: [WILDCARD] -runtime: deno [WILDCARD] - -[WILDCARD]/before_unload_prevent_default.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -foo [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/before_unload_prevent_default.ts b/cli/tests/testdata/bench/before_unload_prevent_default.ts deleted file mode 100644 index 2759d4659..000000000 --- a/cli/tests/testdata/bench/before_unload_prevent_default.ts +++ /dev/null @@ -1,6 +0,0 @@ -addEventListener("beforeunload", (e) => { - // The worker should be killed once benchmarks are done regardless of this. - e.preventDefault(); -}); - -Deno.bench("foo", () => {}); diff --git a/cli/tests/testdata/bench/bench_formatting.out b/cli/tests/testdata/bench/bench_formatting.out deleted file mode 100644 index 5e3eed1cd..000000000 --- a/cli/tests/testdata/bench/bench_formatting.out +++ /dev/null @@ -1,8 +0,0 @@ -Check [WILDCARD]/bench/bench_formatting.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/bench_formatting.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -[WILDCARD] [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD]
\ No newline at end of file diff --git a/cli/tests/testdata/bench/bench_formatting.ts b/cli/tests/testdata/bench/bench_formatting.ts deleted file mode 100644 index fdee15abb..000000000 --- a/cli/tests/testdata/bench/bench_formatting.ts +++ /dev/null @@ -1,3 +0,0 @@ -Deno.bench("Date.now", () => { - Date.now(); -}); diff --git a/cli/tests/testdata/bench/check_local_by_default.out b/cli/tests/testdata/bench/check_local_by_default.out deleted file mode 100644 index bf07bcc44..000000000 --- a/cli/tests/testdata/bench/check_local_by_default.out +++ /dev/null @@ -1,6 +0,0 @@ -[WILDCARD] - -[WILDCARD]/bench/check_local_by_default.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/check_local_by_default.ts b/cli/tests/testdata/bench/check_local_by_default.ts deleted file mode 100644 index 2ae8c2692..000000000 --- a/cli/tests/testdata/bench/check_local_by_default.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as a from "http://localhost:4545/subdir/type_error.ts"; - -console.log(a.a); diff --git a/cli/tests/testdata/bench/check_local_by_default2.out b/cli/tests/testdata/bench/check_local_by_default2.out deleted file mode 100644 index 01aeda636..000000000 --- a/cli/tests/testdata/bench/check_local_by_default2.out +++ /dev/null @@ -1,4 +0,0 @@ -error: TS2322 [ERROR]: Type '12' is not assignable to type '"b"'. -const b: "b" = 12; - ^ - at [WILDCARD]bench/check_local_by_default2.ts:3:7 diff --git a/cli/tests/testdata/bench/check_local_by_default2.ts b/cli/tests/testdata/bench/check_local_by_default2.ts deleted file mode 100644 index 5177ff944..000000000 --- a/cli/tests/testdata/bench/check_local_by_default2.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as a from "http://localhost:4545/subdir/type_error.ts"; - -const b: "b" = 12; - -console.log(a.a); -console.log(b); diff --git a/cli/tests/testdata/bench/clear_timeout.out b/cli/tests/testdata/bench/clear_timeout.out deleted file mode 100644 index fe17b4ae3..000000000 --- a/cli/tests/testdata/bench/clear_timeout.out +++ /dev/null @@ -1,10 +0,0 @@ -Check [WILDCARD]/bench/clear_timeout.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/clear_timeout.ts -benchmark time (avg) iter/s (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] diff --git a/cli/tests/testdata/bench/clear_timeout.ts b/cli/tests/testdata/bench/clear_timeout.ts deleted file mode 100644 index 4148263ac..000000000 --- a/cli/tests/testdata/bench/clear_timeout.ts +++ /dev/null @@ -1,5 +0,0 @@ -clearTimeout(setTimeout(() => {}, 1000)); - -Deno.bench("bench1", () => {}); -Deno.bench("bench2", () => {}); -Deno.bench("bench3", () => {}); diff --git a/cli/tests/testdata/bench/collect.out b/cli/tests/testdata/bench/collect.out deleted file mode 100644 index 03c75922b..000000000 --- a/cli/tests/testdata/bench/collect.out +++ /dev/null @@ -1,18 +0,0 @@ -Check [WILDCARD]/bench/collect/bench.ts -Check [WILDCARD]/bench/collect/include/2_bench.ts -Check [WILDCARD]/bench/collect/include/bench.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/collect/bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - -[WILDCARD]/bench/collect/include/2_bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - -[WILDCARD]/bench/collect/include/bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/collect/bench.ts b/cli/tests/testdata/bench/collect/bench.ts deleted file mode 100644 index e69de29bb..000000000 --- a/cli/tests/testdata/bench/collect/bench.ts +++ /dev/null diff --git a/cli/tests/testdata/bench/collect/deno.jsonc b/cli/tests/testdata/bench/collect/deno.jsonc deleted file mode 100644 index 7f8f190d3..000000000 --- a/cli/tests/testdata/bench/collect/deno.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "bench": { - "exclude": ["./ignore"] - } -} diff --git a/cli/tests/testdata/bench/collect/deno.malformed.jsonc b/cli/tests/testdata/bench/collect/deno.malformed.jsonc deleted file mode 100644 index 8e558fbcf..000000000 --- a/cli/tests/testdata/bench/collect/deno.malformed.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "bench": { - "dont_know_this_field": {} - } -} diff --git a/cli/tests/testdata/bench/collect/deno2.jsonc b/cli/tests/testdata/bench/collect/deno2.jsonc deleted file mode 100644 index 653ab1e31..000000000 --- a/cli/tests/testdata/bench/collect/deno2.jsonc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "bench": { - "include": ["./include/"], - "exclude": ["./ignore", "./include/2_bench.ts"] - } -} diff --git a/cli/tests/testdata/bench/collect/ignore/bench.ts b/cli/tests/testdata/bench/collect/ignore/bench.ts deleted file mode 100644 index 16fb63ba7..000000000 --- a/cli/tests/testdata/bench/collect/ignore/bench.ts +++ /dev/null @@ -1 +0,0 @@ -throw new Error("this module should be ignored"); diff --git a/cli/tests/testdata/bench/collect/include/2_bench.ts b/cli/tests/testdata/bench/collect/include/2_bench.ts deleted file mode 100644 index e69de29bb..000000000 --- a/cli/tests/testdata/bench/collect/include/2_bench.ts +++ /dev/null diff --git a/cli/tests/testdata/bench/collect/include/bench.ts b/cli/tests/testdata/bench/collect/include/bench.ts deleted file mode 100644 index e69de29bb..000000000 --- a/cli/tests/testdata/bench/collect/include/bench.ts +++ /dev/null diff --git a/cli/tests/testdata/bench/collect2.out b/cli/tests/testdata/bench/collect2.out deleted file mode 100644 index 00b8bfc0d..000000000 --- a/cli/tests/testdata/bench/collect2.out +++ /dev/null @@ -1,13 +0,0 @@ -Check [WILDCARD]/bench/collect/bench.ts -Check [WILDCARD]/bench/collect/include/bench.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/collect/bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - -[WILDCARD]/bench/collect/include/bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/collect_with_malformed_config.out b/cli/tests/testdata/bench/collect_with_malformed_config.out deleted file mode 100644 index 92e5e29d2..000000000 --- a/cli/tests/testdata/bench/collect_with_malformed_config.out +++ /dev/null @@ -1,4 +0,0 @@ -error: Failed to parse "bench" configuration - -Caused by: - unknown field `dont_know_this_field`, expected one of `include`, `exclude`, `files` diff --git a/cli/tests/testdata/bench/exit_sanitizer.out b/cli/tests/testdata/bench/exit_sanitizer.out deleted file mode 100644 index 9f15d3f26..000000000 --- a/cli/tests/testdata/bench/exit_sanitizer.out +++ /dev/null @@ -1,14 +0,0 @@ -Check [WILDCARD]/bench/exit_sanitizer.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/exit_sanitizer.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -exit(0) error: Error: Bench attempted to exit with exit code: 0 -[WILDCARD] -exit(1) error: Error: Bench attempted to exit with exit code: 1 -[WILDCARD] -exit(2) error: Error: Bench attempted to exit with exit code: 2 -[WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/exit_sanitizer.ts b/cli/tests/testdata/bench/exit_sanitizer.ts deleted file mode 100644 index 8e596b310..000000000 --- a/cli/tests/testdata/bench/exit_sanitizer.ts +++ /dev/null @@ -1,11 +0,0 @@ -Deno.bench("exit(0)", function () { - Deno.exit(0); -}); - -Deno.bench("exit(1)", function () { - Deno.exit(1); -}); - -Deno.bench("exit(2)", function () { - Deno.exit(2); -}); diff --git a/cli/tests/testdata/bench/explicit_start_and_end.out b/cli/tests/testdata/bench/explicit_start_and_end.out deleted file mode 100644 index fa118540c..000000000 --- a/cli/tests/testdata/bench/explicit_start_and_end.out +++ /dev/null @@ -1,25 +0,0 @@ -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/explicit_start_and_end.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 -------------------------------------------------------------------- ----------------------------- -start and end [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -start only [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -end only [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -double start error: TypeError: BenchContext::start() has already been invoked. - t.start(); - ^ - at BenchContext.start ([WILDCARD]) - at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD] -double end error: TypeError: BenchContext::end() has already been invoked. - t.end(); - ^ - at BenchContext.end ([WILDCARD]) - at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD] -captured error: TypeError: The benchmark which this context belongs to is not being executed. - captured!.start(); - ^ - at BenchContext.start ([WILDCARD]) - at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/explicit_start_and_end.ts b/cli/tests/testdata/bench/explicit_start_and_end.ts deleted file mode 100644 index 60a3d10d7..000000000 --- a/cli/tests/testdata/bench/explicit_start_and_end.ts +++ /dev/null @@ -1,50 +0,0 @@ -Deno.bench("start and end", (t) => { - const id = setInterval(() => {}, 1000); - t.start(); - Deno.inspect(id); - t.end(); - clearInterval(id); -}); - -Deno.bench("start only", (t) => { - const id = setInterval(() => {}, 1000); - t.start(); - Deno.inspect(id); - clearInterval(id); -}); - -Deno.bench("end only", (t) => { - const id = setInterval(() => {}, 1000); - Deno.inspect(id); - t.end(); - clearInterval(id); -}); - -Deno.bench("double start", (t) => { - const id = setInterval(() => {}, 1000); - t.start(); - t.start(); - Deno.inspect(id); - t.end(); - clearInterval(id); -}); - -let captured: Deno.BenchContext; - -Deno.bench("double end", (t) => { - captured = t; - const id = setInterval(() => {}, 1000); - t.start(); - Deno.inspect(id); - t.end(); - t.end(); - clearInterval(id); -}); - -Deno.bench("captured", () => { - const id = setInterval(() => {}, 1000); - captured!.start(); - Deno.inspect(id); - captured!.end(); - clearInterval(id); -}); diff --git a/cli/tests/testdata/bench/explicit_start_and_end_low_precision.out b/cli/tests/testdata/bench/explicit_start_and_end_low_precision.out deleted file mode 100644 index 6dc66cfcc..000000000 --- a/cli/tests/testdata/bench/explicit_start_and_end_low_precision.out +++ /dev/null @@ -1,10 +0,0 @@ -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/explicit_start_and_end_low_precision.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ------------------------------------------------------------------------------ ----------------------------- -noop with start and end [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -Warning: start() and end() calls in "noop with start and end" are ignored because it averages less -than 10µs per iteration. Remove them for better results. - diff --git a/cli/tests/testdata/bench/explicit_start_and_end_low_precision.ts b/cli/tests/testdata/bench/explicit_start_and_end_low_precision.ts deleted file mode 100644 index 23bdf19fe..000000000 --- a/cli/tests/testdata/bench/explicit_start_and_end_low_precision.ts +++ /dev/null @@ -1,4 +0,0 @@ -Deno.bench("noop with start and end", (b) => { - b.start(); - b.end(); -}); diff --git a/cli/tests/testdata/bench/fail.out b/cli/tests/testdata/bench/fail.out deleted file mode 100644 index ff3c29b92..000000000 --- a/cli/tests/testdata/bench/fail.out +++ /dev/null @@ -1,28 +0,0 @@ -Check [WILDCARD]/bench/fail.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/fail.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -bench0 error: Error -[WILDCARD] -bench1 error: Error -[WILDCARD] -bench2 error: Error -[WILDCARD] -bench3 error: Error -[WILDCARD] -bench4 error: Error -[WILDCARD] -bench5 error: Error -[WILDCARD] -bench6 error: Error -[WILDCARD] -bench7 error: Error -[WILDCARD] -bench8 error: Error -[WILDCARD] -bench9 error: Error -[WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/fail.ts b/cli/tests/testdata/bench/fail.ts deleted file mode 100644 index 33d70ce55..000000000 --- a/cli/tests/testdata/bench/fail.ts +++ /dev/null @@ -1,30 +0,0 @@ -Deno.bench("bench0", () => { - throw new Error(); -}); -Deno.bench("bench1", () => { - throw new Error(); -}); -Deno.bench("bench2", () => { - throw new Error(); -}); -Deno.bench("bench3", () => { - throw new Error(); -}); -Deno.bench("bench4", () => { - throw new Error(); -}); -Deno.bench("bench5", () => { - throw new Error(); -}); -Deno.bench("bench6", () => { - throw new Error(); -}); -Deno.bench("bench7", () => { - throw new Error(); -}); -Deno.bench("bench8", () => { - throw new Error(); -}); -Deno.bench("bench9", () => { - throw new Error(); -}); diff --git a/cli/tests/testdata/bench/file_protocol.out b/cli/tests/testdata/bench/file_protocol.out deleted file mode 100644 index 7086c861c..000000000 --- a/cli/tests/testdata/bench/file_protocol.out +++ /dev/null @@ -1,8 +0,0 @@ -Check file://[WILDCARD]/bench/file_protocol.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/file_protocol.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -bench0 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/file_protocol.ts b/cli/tests/testdata/bench/file_protocol.ts deleted file mode 100644 index 06a07bb38..000000000 --- a/cli/tests/testdata/bench/file_protocol.ts +++ /dev/null @@ -1 +0,0 @@ -Deno.bench("bench0", () => {}); diff --git a/cli/tests/testdata/bench/filter.out b/cli/tests/testdata/bench/filter.out deleted file mode 100644 index 970171e0b..000000000 --- a/cli/tests/testdata/bench/filter.out +++ /dev/null @@ -1,20 +0,0 @@ -Check [WILDCARD]/bench/filter/a_bench.ts -Check [WILDCARD]/bench/filter/b_bench.ts -Check [WILDCARD]/bench/filter/c_bench.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/filter/a_bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -foo [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] - -[WILDCARD]/bench/filter/b_bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -foo [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] - -[WILDCARD]/bench/filter/c_bench.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -foo [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/filter/a_bench.ts b/cli/tests/testdata/bench/filter/a_bench.ts deleted file mode 100644 index fc4ef859c..000000000 --- a/cli/tests/testdata/bench/filter/a_bench.ts +++ /dev/null @@ -1,3 +0,0 @@ -Deno.bench("foo", function () {}); -Deno.bench("bar", function () {}); -Deno.bench("baz", function () {}); diff --git a/cli/tests/testdata/bench/filter/b_bench.ts b/cli/tests/testdata/bench/filter/b_bench.ts deleted file mode 100644 index fc4ef859c..000000000 --- a/cli/tests/testdata/bench/filter/b_bench.ts +++ /dev/null @@ -1,3 +0,0 @@ -Deno.bench("foo", function () {}); -Deno.bench("bar", function () {}); -Deno.bench("baz", function () {}); diff --git a/cli/tests/testdata/bench/filter/c_bench.ts b/cli/tests/testdata/bench/filter/c_bench.ts deleted file mode 100644 index fc4ef859c..000000000 --- a/cli/tests/testdata/bench/filter/c_bench.ts +++ /dev/null @@ -1,3 +0,0 @@ -Deno.bench("foo", function () {}); -Deno.bench("bar", function () {}); -Deno.bench("baz", function () {}); diff --git a/cli/tests/testdata/bench/finally_timeout.out b/cli/tests/testdata/bench/finally_timeout.out deleted file mode 100644 index 96bec017d..000000000 --- a/cli/tests/testdata/bench/finally_timeout.out +++ /dev/null @@ -1,11 +0,0 @@ -Check [WILDCARD]/bench/finally_timeout.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/finally_timeout.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -error error: Error: fail -[WILDCARD] -success [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/finally_timeout.ts b/cli/tests/testdata/bench/finally_timeout.ts deleted file mode 100644 index c49eb8da2..000000000 --- a/cli/tests/testdata/bench/finally_timeout.ts +++ /dev/null @@ -1,11 +0,0 @@ -Deno.bench("error", function () { - const timer = setTimeout(() => null, 10000); - try { - throw new Error("fail"); - } finally { - clearTimeout(timer); - } -}); - -Deno.bench("success", function () { -}); diff --git a/cli/tests/testdata/bench/group_baseline.out b/cli/tests/testdata/bench/group_baseline.out deleted file mode 100644 index 5de0ac1fe..000000000 --- a/cli/tests/testdata/bench/group_baseline.out +++ /dev/null @@ -1,20 +0,0 @@ -[WILDCARD]/bench/group_baseline.ts -benchmark time (avg) iter/s (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 [WILDCARD] than noo[WILDCARD] - -group url -noop3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -parse url 2x [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 200x - diff --git a/cli/tests/testdata/bench/group_baseline.ts b/cli/tests/testdata/bench/group_baseline.ts deleted file mode 100644 index a86f6455c..000000000 --- a/cli/tests/testdata/bench/group_baseline.ts +++ /dev/null @@ -1,15 +0,0 @@ -Deno.bench("noop", () => {}); -Deno.bench("noop2", { baseline: true }, () => {}); - -Deno.bench("noop3", { group: "url" }, () => {}); - -Deno.bench("parse url 2x", { group: "url", baseline: true }, () => { - 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/ignore.out b/cli/tests/testdata/bench/ignore.out deleted file mode 100644 index 0693a7fc8..000000000 --- a/cli/tests/testdata/bench/ignore.out +++ /dev/null @@ -1,8 +0,0 @@ -Check [WILDCARD]/bench/ignore.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/ignore.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/ignore.ts b/cli/tests/testdata/bench/ignore.ts deleted file mode 100644 index 0226fe76f..000000000 --- a/cli/tests/testdata/bench/ignore.ts +++ /dev/null @@ -1,9 +0,0 @@ -for (let i = 0; i < 10; i++) { - Deno.bench({ - name: `bench${i}`, - ignore: true, - fn() { - throw new Error("unreachable"); - }, - }); -} diff --git a/cli/tests/testdata/bench/ignore_permissions.out b/cli/tests/testdata/bench/ignore_permissions.out deleted file mode 100644 index 1c8e93535..000000000 --- a/cli/tests/testdata/bench/ignore_permissions.out +++ /dev/null @@ -1,8 +0,0 @@ -Check [WILDCARD]/bench/ignore_permissions.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/ignore_permissions.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/ignore_permissions.ts b/cli/tests/testdata/bench/ignore_permissions.ts deleted file mode 100644 index 0dcd9299f..000000000 --- a/cli/tests/testdata/bench/ignore_permissions.ts +++ /dev/null @@ -1,16 +0,0 @@ -Deno.bench({ - name: "ignore", - permissions: { - read: true, - write: true, - net: true, - env: true, - run: true, - ffi: true, - hrtime: true, - }, - ignore: true, - fn() { - throw new Error("unreachable"); - }, -}); diff --git a/cli/tests/testdata/bench/interval.out b/cli/tests/testdata/bench/interval.out deleted file mode 100644 index 389b89162..000000000 --- a/cli/tests/testdata/bench/interval.out +++ /dev/null @@ -1,8 +0,0 @@ -Check [WILDCARD]/bench/interval.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/interval.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/interval.ts b/cli/tests/testdata/bench/interval.ts deleted file mode 100644 index 7eb588c59..000000000 --- a/cli/tests/testdata/bench/interval.ts +++ /dev/null @@ -1 +0,0 @@ -setInterval(function () {}, 0); diff --git a/cli/tests/testdata/bench/load_unload.out b/cli/tests/testdata/bench/load_unload.out deleted file mode 100644 index e5bc6b29e..000000000 --- a/cli/tests/testdata/bench/load_unload.out +++ /dev/null @@ -1,8 +0,0 @@ -Check [WILDCARD]/bench/load_unload.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/load_unload.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -bench [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/load_unload.ts b/cli/tests/testdata/bench/load_unload.ts deleted file mode 100644 index 3653c135d..000000000 --- a/cli/tests/testdata/bench/load_unload.ts +++ /dev/null @@ -1,22 +0,0 @@ -let interval: number | null = null; -addEventListener("load", () => { - if (interval) { - throw new Error("Interval is already set"); - } - - interval = setInterval(() => {}, 0); -}); - -addEventListener("unload", () => { - if (!interval) { - throw new Error("Interval was not set"); - } - - clearInterval(interval); -}); - -Deno.bench("bench", () => { - if (!interval) { - throw new Error("Interval was not set"); - } -}); diff --git a/cli/tests/testdata/bench/meta.out b/cli/tests/testdata/bench/meta.out deleted file mode 100644 index 8c9aa9123..000000000 --- a/cli/tests/testdata/bench/meta.out +++ /dev/null @@ -1,10 +0,0 @@ -Check [WILDCARD]/bench/meta.ts -import.meta.main: false -import.meta.url: [WILDCARD]/bench/meta.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/meta.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- - diff --git a/cli/tests/testdata/bench/meta.ts b/cli/tests/testdata/bench/meta.ts deleted file mode 100644 index e32fdeea6..000000000 --- a/cli/tests/testdata/bench/meta.ts +++ /dev/null @@ -1,2 +0,0 @@ -console.log("import.meta.main: %s", import.meta.main); -console.log("import.meta.url: %s", import.meta.url); diff --git a/cli/tests/testdata/bench/multifile_summary.out b/cli/tests/testdata/bench/multifile_summary.out deleted file mode 100644 index 37aebe187..000000000 --- a/cli/tests/testdata/bench/multifile_summary.out +++ /dev/null @@ -1,64 +0,0 @@ -Check [WILDCARD]/bench/group_baseline.ts -Check [WILDCARD]/bench/pass.ts -Check [WILDCARD]/bench/multiple_group.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/group_baseline.ts -benchmark time (avg) iter/s (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 [WILDCARD] than noo[WILDCARD] - -group url -noop3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -parse url 2x [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 200x - - -[WILDCARD]/bench/pass.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -bench0 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench1 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench4 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench5 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench6 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench7 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench8 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench9 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] - - -[WILDCARD]/bench/multiple_group.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 --------------------------------------------------------------------- ----------------------------- - -group noop -noop [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -noop2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] - -summary - noo[WILDCARD] - [WILDCARD]x [WILDCARD] than noo[WILDCARD] - -group url -noop3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -parse url 2x [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 200x - diff --git a/cli/tests/testdata/bench/multiple_group.ts b/cli/tests/testdata/bench/multiple_group.ts deleted file mode 100644 index 69e73a7f2..000000000 --- a/cli/tests/testdata/bench/multiple_group.ts +++ /dev/null @@ -1,15 +0,0 @@ -Deno.bench("noop", { group: "noop" }, () => {}); -Deno.bench("noop2", { group: "noop", baseline: true }, () => {}); - -Deno.bench("noop3", { group: "url" }, () => {}); - -Deno.bench("parse url 2x", { group: "url", baseline: true }, () => { - 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/no_check.out b/cli/tests/testdata/bench/no_check.out deleted file mode 100644 index 6dc016458..000000000 --- a/cli/tests/testdata/bench/no_check.out +++ /dev/null @@ -1,9 +0,0 @@ -error: (in promise) TypeError: Cannot read properties of undefined (reading 'fn') -Deno.bench(); - ^ - at [WILDCARD] - at [WILDCARD]/bench/no_check.ts:1:6 -This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. -It most likely originated from a dangling promise, event/timeout handler or top-level code. - -error: Bench failed diff --git a/cli/tests/testdata/bench/no_check.ts b/cli/tests/testdata/bench/no_check.ts deleted file mode 100644 index b159cabd6..000000000 --- a/cli/tests/testdata/bench/no_check.ts +++ /dev/null @@ -1 +0,0 @@ -Deno.bench(); diff --git a/cli/tests/testdata/bench/no_color.ts b/cli/tests/testdata/bench/no_color.ts deleted file mode 100644 index d15bf3572..000000000 --- a/cli/tests/testdata/bench/no_color.ts +++ /dev/null @@ -1,17 +0,0 @@ -Deno.bench({ - name: "success", - fn() {}, -}); - -Deno.bench({ - name: "fail", - fn() { - throw new Error("fail"); - }, -}); - -Deno.bench({ - name: "ignored", - ignore: true, - fn() {}, -}); diff --git a/cli/tests/testdata/bench/no_prompt_by_default.out b/cli/tests/testdata/bench/no_prompt_by_default.out deleted file mode 100644 index 4c7e7f146..000000000 --- a/cli/tests/testdata/bench/no_prompt_by_default.out +++ /dev/null @@ -1,9 +0,0 @@ -[WILDCARD]cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/no_prompt_by_default.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag -[WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/no_prompt_by_default.ts b/cli/tests/testdata/bench/no_prompt_by_default.ts deleted file mode 100644 index 59359eebd..000000000 --- a/cli/tests/testdata/bench/no_prompt_by_default.ts +++ /dev/null @@ -1,3 +0,0 @@ -Deno.bench("no prompt", async () => { - await Deno.readTextFile("./some_file.txt"); -}); diff --git a/cli/tests/testdata/bench/no_prompt_with_denied_perms.out b/cli/tests/testdata/bench/no_prompt_with_denied_perms.out deleted file mode 100644 index 74400dafe..000000000 --- a/cli/tests/testdata/bench/no_prompt_with_denied_perms.out +++ /dev/null @@ -1,9 +0,0 @@ -[WILDCARD]cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/no_prompt_with_denied_perms.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag -[WILDCARD] -error: Bench failed diff --git a/cli/tests/testdata/bench/no_prompt_with_denied_perms.ts b/cli/tests/testdata/bench/no_prompt_with_denied_perms.ts deleted file mode 100644 index 2f0d63bbe..000000000 --- a/cli/tests/testdata/bench/no_prompt_with_denied_perms.ts +++ /dev/null @@ -1,3 +0,0 @@ -Deno.bench("no prompt", { permissions: { read: false } }, async () => { - await Deno.readTextFile("./some_file.txt"); -}); diff --git a/cli/tests/testdata/bench/no_run.out b/cli/tests/testdata/bench/no_run.out deleted file mode 100644 index 5d40f1d3b..000000000 --- a/cli/tests/testdata/bench/no_run.out +++ /dev/null @@ -1,5 +0,0 @@ -Check [WILDCARD]/bench/no_run.ts -error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'. -const _value: string = 1; - ~~~~~~ - at [WILDCARD]/bench/no_run.ts:1:7 diff --git a/cli/tests/testdata/bench/no_run.ts b/cli/tests/testdata/bench/no_run.ts deleted file mode 100644 index c7a5dc1e8..000000000 --- a/cli/tests/testdata/bench/no_run.ts +++ /dev/null @@ -1,2 +0,0 @@ -const _value: string = 1; -console.log("this should not be run"); diff --git a/cli/tests/testdata/bench/only.out b/cli/tests/testdata/bench/only.out deleted file mode 100644 index 00338af8e..000000000 --- a/cli/tests/testdata/bench/only.out +++ /dev/null @@ -1,9 +0,0 @@ -Check [WILDCARD]/bench/only.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/only.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -only [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -error: Bench failed because the "only" option was used diff --git a/cli/tests/testdata/bench/only.ts b/cli/tests/testdata/bench/only.ts deleted file mode 100644 index 0129c024c..000000000 --- a/cli/tests/testdata/bench/only.ts +++ /dev/null @@ -1,15 +0,0 @@ -Deno.bench({ - name: "before", - fn() {}, -}); - -Deno.bench({ - only: true, - name: "only", - fn() {}, -}); - -Deno.bench({ - name: "after", - fn() {}, -}); diff --git a/cli/tests/testdata/bench/overloads.out b/cli/tests/testdata/bench/overloads.out deleted file mode 100644 index 289c8dde6..000000000 --- a/cli/tests/testdata/bench/overloads.out +++ /dev/null @@ -1,12 +0,0 @@ -Check [WILDCARD]/bench/overloads.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/overloads.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -bench0 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench1 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench4 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/overloads.ts b/cli/tests/testdata/bench/overloads.ts deleted file mode 100644 index 4f5887f79..000000000 --- a/cli/tests/testdata/bench/overloads.ts +++ /dev/null @@ -1,6 +0,0 @@ -Deno.bench("bench0", () => {}); -Deno.bench(function bench1() {}); -Deno.bench({ name: "bench2", fn: () => {} }); -Deno.bench("bench3", { permissions: "none" }, () => {}); -Deno.bench({ name: "bench4" }, () => {}); -Deno.bench({ ignore: true }, function bench5() {}); diff --git a/cli/tests/testdata/bench/pass.json.out b/cli/tests/testdata/bench/pass.json.out deleted file mode 100644 index 73daa7202..000000000 --- a/cli/tests/testdata/bench/pass.json.out +++ /dev/null @@ -1,28 +0,0 @@ -Check file:///[WILDCARD]testdata/bench/pass.ts -{ - "runtime": "Deno/[WILDCARD]", - "cpu": "[WILDCARD]", - "benches": [ - { - "origin": "file:///[WILDCARD]testdata/bench/pass.ts", - "group": null, - "name": "bench0", - "baseline": false, - "results": [ - { - "ok": { - "n": [WILDCARD], - "min": [WILDCARD], - "max": [WILDCARD], - "avg": [WILDCARD], - "p75": [WILDCARD], - "p99": [WILDCARD], - "p995": [WILDCARD], - "p999": [WILDCARD] - } - } - ] - }, -[WILDCARD] - ] -} diff --git a/cli/tests/testdata/bench/pass.out b/cli/tests/testdata/bench/pass.out deleted file mode 100644 index 19ea6fd13..000000000 --- a/cli/tests/testdata/bench/pass.out +++ /dev/null @@ -1,17 +0,0 @@ -Check [WILDCARD]/bench/pass.ts -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/pass.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 ---------------------------------------------------------------- ----------------------------- -bench0 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench1 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench2 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench3 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench4 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench5 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench6 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench7 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench8 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -bench9 [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/pass.ts b/cli/tests/testdata/bench/pass.ts deleted file mode 100644 index 48348d447..000000000 --- a/cli/tests/testdata/bench/pass.ts +++ /dev/null @@ -1,10 +0,0 @@ -Deno.bench("bench0", () => {}); -Deno.bench("bench1", () => {}); -Deno.bench("bench2", () => {}); -Deno.bench("bench3", () => {}); -Deno.bench("bench4", () => {}); -Deno.bench("bench5", () => {}); -Deno.bench("bench6", () => {}); -Deno.bench("bench7", () => {}); -Deno.bench("bench8", () => {}); -Deno.bench("bench9", () => {}); diff --git a/cli/tests/testdata/bench/quiet.out b/cli/tests/testdata/bench/quiet.out deleted file mode 100644 index ed9e06c84..000000000 --- a/cli/tests/testdata/bench/quiet.out +++ /dev/null @@ -1,10 +0,0 @@ -cpu: [WILDCARD] -runtime: deno [WILDCARD] ([WILDCARD]) - -[WILDCARD]/bench/quiet.ts -benchmark time (avg) iter/s (min … max) p75 p99 p995 -------------------------------------------------------------------- ----------------------------- -console.log [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -console.error [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -console.info [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] -console.warn [WILDCARD] [WILDCARD]/iter[WILDCARD]([WILDCARD] … [WILDCARD]) [WILDCARD] diff --git a/cli/tests/testdata/bench/quiet.ts b/cli/tests/testdata/bench/quiet.ts deleted file mode 100644 index efeb366ff..000000000 --- a/cli/tests/testdata/bench/quiet.ts +++ /dev/null @@ -1,15 +0,0 @@ -Deno.bench("console.log", function () { - console.log("log"); -}); - -Deno.bench("console.error", function () { - console.error("error"); -}); - -Deno.bench("console.info", function () { - console.info("info"); -}); - -Deno.bench("console.warn", function () { - console.info("warn"); -}); diff --git a/cli/tests/testdata/bench/recursive_permissions_pledge.js b/cli/tests/testdata/bench/recursive_permissions_pledge.js deleted file mode 100644 index 9bf320c37..000000000 --- a/cli/tests/testdata/bench/recursive_permissions_pledge.js +++ /dev/null @@ -1,6 +0,0 @@ -Deno[Deno.internal].core.ops.op_pledge_test_permissions( - "none", -); -Deno[Deno.internal].core.ops.op_pledge_test_permissions( - "inherit", -); diff --git a/cli/tests/testdata/bench/unhandled_rejection.out b/cli/tests/testdata/bench/unhandled_rejection.out deleted file mode 100644 index dba6d9ed4..000000000 --- a/cli/tests/testdata/bench/unhandled_rejection.out +++ /dev/null @@ -1,11 +0,0 @@ -Check [WILDCARD]/bench/unhandled_rejection.ts -error: (in promise) Error: rejection - reject(new Error("rejection")); - ^ - at [WILDCARD]/bench/unhandled_rejection.ts:2:10 - at new Promise (<anonymous>) - at [WILDCARD]/bench/unhandled_rejection.ts:1:1 -This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. -It most likely originated from a dangling promise, event/timeout handler or top-level code. - -error: Bench failed diff --git a/cli/tests/testdata/bench/unhandled_rejection.ts b/cli/tests/testdata/bench/unhandled_rejection.ts deleted file mode 100644 index 32f3111ea..000000000 --- a/cli/tests/testdata/bench/unhandled_rejection.ts +++ /dev/null @@ -1,3 +0,0 @@ -new Promise((_resolve, reject) => { - reject(new Error("rejection")); -}); diff --git a/cli/tests/testdata/bench/unresolved_promise.out b/cli/tests/testdata/bench/unresolved_promise.out deleted file mode 100644 index e5c53836a..000000000 --- a/cli/tests/testdata/bench/unresolved_promise.out +++ /dev/null @@ -1,9 +0,0 @@ -Check [WILDCARD]/bench/unresolved_promise.ts -error: Top-level await promise never resolved -await new Promise((_resolve, _reject) => {}); -^ - at <anonymous> ([WILDCARD]bench/unresolved_promise.ts:1:1) -This error was not caught from a benchmark and caused the bench runner to fail on the referenced module. -It most likely originated from a dangling promise, event/timeout handler or top-level code. - -error: Bench failed diff --git a/cli/tests/testdata/bench/unresolved_promise.ts b/cli/tests/testdata/bench/unresolved_promise.ts deleted file mode 100644 index 25fe70762..000000000 --- a/cli/tests/testdata/bench/unresolved_promise.ts +++ /dev/null @@ -1 +0,0 @@ -await new Promise((_resolve, _reject) => {}); |