aboutsummaryrefslogtreecommitdiff
path: root/bench/stream-file-upload-client/README.md
blob: 0035cfcf5e5082508c0e46b933f14d650ce37c1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# HTTP request file upload benchmark

This is a simple benchmark of uploading a file to a web server in different runtimes.

## Usage

Generate a file to upload (default is `hello.txt`):

```bash
bun generate-file.js
```

Run the server:

```bash
node server-node.mjs
```

Run the benchmark in bun:

```bash
bun stream-file-bun.js
```

Run the benchmark in node:

```bash
node stream-file-node.mjs
```

Run the benchmark in deno:

```bash
deno run -A stream-file-deno.js
```