aboutsummaryrefslogtreecommitdiff
path: root/bench/ffi/plus100/add3.napi.mjs
diff options
context:
space:
mode:
authorGravatar evan <github@evan.lol> 2022-07-12 04:40:12 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-12 01:40:12 -0700
commita9e4ff2029a769737982fcf7e0b7d76d35cf35e4 (patch)
tree497832408d926e2bed779fcec4ba655624a29792 /bench/ffi/plus100/add3.napi.mjs
parent7eea306b0ff46a27f134809a9b3c12bf4b38fa7e (diff)
downloadbun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.tar.gz
bun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.tar.zst
bun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.zip
cleanup benchmarks folder (#587)
* cleanup benchmarks * run prettier
Diffstat (limited to 'bench/ffi/plus100/add3.napi.mjs')
-rw-r--r--bench/ffi/plus100/add3.napi.mjs19
1 files changed, 0 insertions, 19 deletions
diff --git a/bench/ffi/plus100/add3.napi.mjs b/bench/ffi/plus100/add3.napi.mjs
deleted file mode 100644
index fd96d8eb5..000000000
--- a/bench/ffi/plus100/add3.napi.mjs
+++ /dev/null
@@ -1,19 +0,0 @@
-import { bench, run } from "mitata";
-
-const { add3, noop } =
- "Bun" in globalThis
- ? require("./plus100-napi")
- : (await import("module")).createRequire(import.meta.url)("./plus100-napi");
-
-bench("add3(1,2,3) napi", () => {
- add3(1, 2, 3);
-});
-bench("noop() napi", () => {
- noop();
-});
-await run({ collect: false, percentiles: true });
-console.log("\n");
-
-if (add3(1, 2, 3) !== 1 + 2 + 3) {
- throw new Error("plus100(1) !== 101");
-}