summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/bench/explicit_start_and_end_low_precision.out9
-rw-r--r--cli/tests/testdata/bench/explicit_start_and_end_low_precision.ts4
2 files changed, 13 insertions, 0 deletions
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
new file mode 100644
index 000000000..e9ac5a864
--- /dev/null
+++ b/cli/tests/testdata/bench/explicit_start_and_end_low_precision.out
@@ -0,0 +1,9 @@
+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 0.01s 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
new file mode 100644
index 000000000..23bdf19fe
--- /dev/null
+++ b/cli/tests/testdata/bench/explicit_start_and_end_low_precision.ts
@@ -0,0 +1,4 @@
+Deno.bench("noop with start and end", (b) => {
+ b.start();
+ b.end();
+});