Skip to content

Commit 3372aed

Browse files
authored
Update README.md
1 parent 0fe2a63 commit 3372aed

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

README.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,19 @@ npm i undici
2020
The benchmark is a simple `hello world` [example](benchmarks/benchmark.js) using a
2121
50 TCP connections with a pipelining depth of 10 running on Node 20.6.0.
2222

23-
│ Tests │ Samples │ Result │ Tolerance │ Difference with slowest │
24-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
25-
│ got │ 40 │ 1676.51 req/sec │ ± 2.93 % │ - │
26-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
27-
│ undici - fetch │ 30 │ 2081.23 req/sec │ ± 2.91 % │ + 24.14 % │
28-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
29-
│ http - no keepalive │ 30 │ 2477.88 req/sec │ ± 2.73 % │ + 47.80 % │
30-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
31-
│ axios │ 20 │ 2673.40 req/sec │ ± 2.54 % │ + 59.46 % │
32-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
33-
│ node-fetch │ 10 │ 2776.09 req/sec │ ± 1.16 % │ + 65.59 % │
34-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
35-
│ request │ 10 │ 3458.80 req/sec │ ± 0.92 % │ + 106.31 % │
36-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
37-
│ http - keepalive │ 40 │ 4415.13 req/sec │ ± 3.00 % │ + 163.35 % │
38-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
39-
│ undici - pipeline │ 10 │ 5912.29 req/sec │ ± 3.00 % │ + 252.65 % │
40-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
41-
│ undici - request │ 80 │ 7829.95 req/sec │ ± 2.92 % │ + 367.04 % │
42-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
43-
│ undici - stream │ 65 │ 8221.08 req/sec │ ± 2.86 % │ + 390.37 % │
44-
|─────────────────────|─────────|─────────────────|───────────|─────────────────────────|
45-
│ undici - dispatch │ 60 │ 9600.55 req/sec │ ± 2.88 % │ + 472.65 % │
23+
| Tests | Samples | Result | Tolerance | Difference with slowest |
24+
|---------------------|---------|-----------------|-----------|-------------------------|
25+
| got | 40 | 1676.51 req/sec | ± 2.93 % | - |
26+
| undici - fetch | 30 | 2081.23 req/sec | ± 2.91 % | + 24.14 % |
27+
| http - no keepalive | 30 | 2477.88 req/sec | ± 2.73 % | + 47.80 % |
28+
| axios | 20 | 2673.40 req/sec | ± 2.54 % | + 59.46 % |
29+
| node-fetch | 10 | 2776.09 req/sec | ± 1.16 % | + 65.59 % |
30+
| request | 10 | 3458.80 req/sec | ± 0.92 % | + 106.31 % |
31+
| http - keepalive | 40 | 4415.13 req/sec | ± 3.00 % | + 163.35 % |
32+
| undici - pipeline | 10 | 5912.29 req/sec | ± 3.00 % | + 252.65 % |
33+
| undici - request | 80 | 7829.95 req/sec | ± 2.92 % | + 367.04 % |
34+
| undici - stream | 65 | 8221.08 req/sec | ± 2.86 % | + 390.37 % |
35+
| undici - dispatch | 60 | 9600.55 req/sec | ± 2.88 % | + 472.65 % |
4636

4737
## Quick Start
4838

0 commit comments

Comments
 (0)