This is a simple benchmark of uploading a file to a web server in different runtimes.
Generate a file to upload (default is hello.txt
):
bun generate-file.js
Run the server:
node server-node.mjs
Run the benchmark in bun:
bun stream-file-bun.js
Run the benchmark in node:
node stream-file-node.mjs
Run the benchmark in deno:
deno run -A stream-file-deno.js