aboutsummaryrefslogtreecommitdiff
path: root/bench/async-overhead.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'bench/async-overhead.mjs')
-rw-r--r--bench/async-overhead.mjs7
1 files changed, 7 insertions, 0 deletions
diff --git a/bench/async-overhead.mjs b/bench/async-overhead.mjs
new file mode 100644
index 000000000..1fe94f15b
--- /dev/null
+++ b/bench/async-overhead.mjs
@@ -0,0 +1,7 @@
+import { run, bench } from "mitata";
+
+bench("async", async () => 1);
+bench("await 1", async () => await 1);
+bench("noop", () => {});
+
+await run();