aboutsummaryrefslogtreecommitdiff
path: root/bench/copyfile/node-streams.js
diff options
context:
space:
mode:
authorGravatar evan <github@evan.lol> 2022-07-12 04:40:12 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-12 01:40:12 -0700
commita9e4ff2029a769737982fcf7e0b7d76d35cf35e4 (patch)
tree497832408d926e2bed779fcec4ba655624a29792 /bench/copyfile/node-streams.js
parent7eea306b0ff46a27f134809a9b3c12bf4b38fa7e (diff)
downloadbun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.tar.gz
bun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.tar.zst
bun-a9e4ff2029a769737982fcf7e0b7d76d35cf35e4.zip
cleanup benchmarks folder (#587)
* cleanup benchmarks * run prettier
Diffstat (limited to 'bench/copyfile/node-streams.js')
-rw-r--r--bench/copyfile/node-streams.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/copyfile/node-streams.js b/bench/copyfile/node-streams.js
new file mode 100644
index 000000000..835769cdf
--- /dev/null
+++ b/bench/copyfile/node-streams.js
@@ -0,0 +1,4 @@
+import { createReadStream, createWriteStream } from "node:fs";
+
+const arg = process.argv.slice(2);
+createReadStream(arg[0]).pipe(createWriteStream(arg[1]));