aboutsummaryrefslogtreecommitdiff
path: root/bench/ffi/bun.js
diff options
context:
space:
mode:
Diffstat (limited to 'bench/ffi/bun.js')
-rw-r--r--bench/ffi/bun.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/bench/ffi/bun.js b/bench/ffi/bun.js
index 033af76f5..ec086c73a 100644
--- a/bench/ffi/bun.js
+++ b/bench/ffi/bun.js
@@ -23,11 +23,12 @@ group("bun:ffi", () => {
bench("c string", () => new CString(ffi_string()));
});
-group("bun:napi", () => {
- bench("noop", () => napiNoop());
- bench("hash", () => napiHash(bytes));
+if (process.env.SHOW_NAPI)
+ group("bun:napi", () => {
+ bench("noop", () => napiNoop());
+ bench("hash", () => napiHash(bytes));
- bench("string", () => napiString());
-});
+ bench("string", () => napiString());
+ });
await run();