aboutsummaryrefslogtreecommitdiff
path: root/bench/ffi/plus100/plus100.deno.js
diff options
context:
space:
mode:
Diffstat (limited to 'bench/ffi/plus100/plus100.deno.js')
-rw-r--r--bench/ffi/plus100/plus100.deno.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/bench/ffi/plus100/plus100.deno.js b/bench/ffi/plus100/plus100.deno.js
deleted file mode 100644
index ec58a8b64..000000000
--- a/bench/ffi/plus100/plus100.deno.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import { run, bench, group, baseline } from "https://esm.sh/mitata";
-
-const {
- symbols: { plus100: plus100, noop },
- close,
-} = Deno.dlopen("./plus100.dylib", {
- plus100: {
- parameters: ["i32"],
- result: "i32",
- },
- noop: {
- parameters: [],
- result: "void",
- },
-});
-bench("plus100(1) ", () => {
- plus100(1);
-});
-
-bench("noop() ", () => {
- noop();
-});
-
-// collect option collects benchmark returned values into array
-// prevents gc and can help with jit optimizing out functions
-await run({ collect: false, percentiles: true });
-
-if (plus100(1) !== 101) {
- throw new Error("plus100(1) !== 101");
-}