Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored Jan 15, 2024
1 parent 0fe2a63 commit 3372aed
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,19 @@ npm i undici
The benchmark is a simple `hello world` [example](benchmarks/benchmark.js) using a
50 TCP connections with a pipelining depth of 10 running on Node 20.6.0.

│ Tests │ Samples │ Result │ Tolerance │ Difference with slowest │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ got │ 40 │ 1676.51 req/sec │ ± 2.93 % │ - │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ undici - fetch │ 30 │ 2081.23 req/sec │ ± 2.91 % │ + 24.14 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ http - no keepalive │ 30 │ 2477.88 req/sec │ ± 2.73 % │ + 47.80 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ axios │ 20 │ 2673.40 req/sec │ ± 2.54 % │ + 59.46 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ node-fetch │ 10 │ 2776.09 req/sec │ ± 1.16 % │ + 65.59 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ request │ 10 │ 3458.80 req/sec │ ± 0.92 % │ + 106.31 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ http - keepalive │ 40 │ 4415.13 req/sec │ ± 3.00 % │ + 163.35 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ undici - pipeline │ 10 │ 5912.29 req/sec │ ± 3.00 % │ + 252.65 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ undici - request │ 80 │ 7829.95 req/sec │ ± 2.92 % │ + 367.04 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ undici - stream │ 65 │ 8221.08 req/sec │ ± 2.86 % │ + 390.37 % │
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
│ undici - dispatch │ 60 │ 9600.55 req/sec │ ± 2.88 % │ + 472.65 % │
| Tests | Samples | Result | Tolerance | Difference with slowest |
|---------------------|---------|-----------------|-----------|-------------------------|
| got | 40 | 1676.51 req/sec | ± 2.93 % | - |
| undici - fetch | 30 | 2081.23 req/sec | ± 2.91 % | + 24.14 % |
| http - no keepalive | 30 | 2477.88 req/sec | ± 2.73 % | + 47.80 % |
| axios | 20 | 2673.40 req/sec | ± 2.54 % | + 59.46 % |
| node-fetch | 10 | 2776.09 req/sec | ± 1.16 % | + 65.59 % |
| request | 10 | 3458.80 req/sec | ± 0.92 % | + 106.31 % |
| http - keepalive | 40 | 4415.13 req/sec | ± 3.00 % | + 163.35 % |
| undici - pipeline | 10 | 5912.29 req/sec | ± 3.00 % | + 252.65 % |
| undici - request | 80 | 7829.95 req/sec | ± 2.92 % | + 367.04 % |
| undici - stream | 65 | 8221.08 req/sec | ± 2.86 % | + 390.37 % |
| undici - dispatch | 60 | 9600.55 req/sec | ± 2.88 % | + 472.65 % |

## Quick Start

Expand Down

0 comments on commit 3372aed

Please sign in to comment.