aboutsummaryrefslogtreecommitdiff
path: root/bench/copyfile/node.mitata.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'bench/copyfile/node.mitata.mjs')
-rw-r--r--bench/copyfile/node.mitata.mjs12
1 files changed, 3 insertions, 9 deletions
diff --git a/bench/copyfile/node.mitata.mjs b/bench/copyfile/node.mitata.mjs
index aa77245e1..379150487 100644
--- a/bench/copyfile/node.mitata.mjs
+++ b/bench/copyfile/node.mitata.mjs
@@ -7,14 +7,8 @@ function runner(ready) {
for (let i = 0; i < size; i++) {
rand[i] = (Math.random() * 1024 * 1024) | 0;
}
- const dest = `/tmp/fs-test-copy-file-${(
- (Math.random() * 10000000 + 100) |
- 0
- ).toString(32)}`;
- const src = `/tmp/fs-test-copy-file-${(
- (Math.random() * 10000000 + 100) |
- 0
- ).toString(32)}`;
+ const dest = `/tmp/fs-test-copy-file-${((Math.random() * 10000000 + 100) | 0).toString(32)}`;
+ const src = `/tmp/fs-test-copy-file-${((Math.random() * 10000000 + 100) | 0).toString(32)}`;
writeFileSync(src, Buffer.from(rand.buffer), { encoding: "buffer" });
const { size: fileSize } = statSync(src);
if (fileSize !== rand.byteLength) {
@@ -35,6 +29,6 @@ runner((src, dest, rand) =>
// );
// }
// }
- })
+ }),
);
await run();