aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-13 01:02:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-07-13 01:03:03 -0700
commit9bba47129aa527c02bb3ac58060cf662f83476e9 (patch)
treeb3cbc17d1b586070c575d5aac0519c16f13603a9
parent54b03f6e8a3aa3d66589315959d8fdd6e7f15339 (diff)
downloadbun-9bba47129aa527c02bb3ac58060cf662f83476e9.tar.gz
bun-9bba47129aa527c02bb3ac58060cf662f83476e9.tar.zst
bun-9bba47129aa527c02bb3ac58060cf662f83476e9.zip
Add a console.log bench
-rw-r--r--bench/log/bun.js4
-rw-r--r--bench/log/deno.mjs4
-rw-r--r--bench/log/node.mjs4
3 files changed, 12 insertions, 0 deletions
diff --git a/bench/log/bun.js b/bench/log/bun.js
new file mode 100644
index 000000000..70ba6ccab
--- /dev/null
+++ b/bench/log/bun.js
@@ -0,0 +1,4 @@
+import { bench, run } from "mitata";
+
+bench("console.log", () => console.log("hello"));
+await run();
diff --git a/bench/log/deno.mjs b/bench/log/deno.mjs
new file mode 100644
index 000000000..e980f07cc
--- /dev/null
+++ b/bench/log/deno.mjs
@@ -0,0 +1,4 @@
+import { bench, run } from "../../node_modules/mitata/src/cli.mjs";
+
+bench("console.log", () => console.log("hello"));
+await run();
diff --git a/bench/log/node.mjs b/bench/log/node.mjs
new file mode 100644
index 000000000..70ba6ccab
--- /dev/null
+++ b/bench/log/node.mjs
@@ -0,0 +1,4 @@
+import { bench, run } from "mitata";
+
+bench("console.log", () => console.log("hello"));
+await run();