summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench')
-rw-r--r--cli/bench/fs/run.mjs6
-rw-r--r--cli/bench/napi/bench_node.mjs4
2 files changed, 7 insertions, 3 deletions
diff --git a/cli/bench/fs/run.mjs b/cli/bench/fs/run.mjs
index 7f27438b0..727b4126c 100644
--- a/cli/bench/fs/run.mjs
+++ b/cli/bench/fs/run.mjs
@@ -63,4 +63,8 @@ const readFileSync = getFunction("readFileSync");
writeFileSync("test", new Uint8Array(1024), { truncate: true });
bench(() => readFileSync("test"));
-writeFileSync(new URL(`./${runtime}.json`, import.meta.url), new TextEncoder().encode(JSON.stringify(values, null, 2)), { truncate: true }); \ No newline at end of file
+writeFileSync(
+ new URL(`./${runtime}.json`, import.meta.url),
+ new TextEncoder().encode(JSON.stringify(values, null, 2)),
+ { truncate: true },
+);
diff --git a/cli/bench/napi/bench_node.mjs b/cli/bench/napi/bench_node.mjs
index 7bfb63814..2593aadd2 100644
--- a/cli/bench/napi/bench_node.mjs
+++ b/cli/bench/napi/bench_node.mjs
@@ -1,4 +1,4 @@
-import { run, bench } from "mitata";
+import { bench, run } from "mitata";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
@@ -7,4 +7,4 @@ const lib = require("../../../test_napi.node");
bench("warmup", () => {});
bench("napi_get_undefined", () => lib.test_get_undefined(0));
-run(); \ No newline at end of file
+run();