diff options
author | 2022-08-18 00:22:24 -0700 | |
---|---|---|
committer | 2022-08-18 00:22:24 -0700 | |
commit | 5de8271181985751f8fc04b6fd9fd4be4c457d1e (patch) | |
tree | acf6e1d0f5493acdf3dd47729e99bc2102d28e88 /bench/ffi/bun.js | |
parent | f4ff5ecbdf653a11e48943628b8bc363cbb44680 (diff) | |
download | bun-5de8271181985751f8fc04b6fd9fd4be4c457d1e.tar.gz bun-5de8271181985751f8fc04b6fd9fd4be4c457d1e.tar.zst bun-5de8271181985751f8fc04b6fd9fd4be4c457d1e.zip |
Handle builds with remote inspector disabled
Diffstat (limited to 'bench/ffi/bun.js')
-rw-r--r-- | bench/ffi/bun.js | 11 |
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(); |