Skip to content

Commit 1db1073

Browse files
committed
adding benchmarks
1 parent c6ce4d1 commit 1db1073

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,41 @@ module.exports = {
3030
fetch: (request) => router.lookup(request)
3131
}
3232
```
33-
33+
# Benchmarks
34+
## 0http-bun
35+
```
36+
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
37+
Running 10s test @ http://127.0.0.1:3000/hi
38+
4 threads and 50 connections
39+
Thread Stats Avg Stdev Max +/- Stdev
40+
Latency 463.26us 99.23us 4.28ms 96.62%
41+
Req/Sec 25.98k 1.10k 27.48k 76.73%
42+
Latency Distribution
43+
50% 442.00us
44+
75% 466.00us
45+
90% 485.00us
46+
99% 0.91ms
47+
1044377 requests in 10.10s, 127.49MB read
48+
Requests/sec: 103397.66
49+
Transfer/sec: 12.62MB
50+
```
51+
## 0http-node
52+
```
53+
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
54+
Running 10s test @ http://127.0.0.1:3000/hi
55+
4 threads and 50 connections
56+
Thread Stats Avg Stdev Max +/- Stdev
57+
Latency 0.98ms 251.77us 13.04ms 95.09%
58+
Req/Sec 12.31k 771.37 16.96k 95.29%
59+
Latency Distribution
60+
50% 0.95ms
61+
75% 0.96ms
62+
90% 0.98ms
63+
99% 1.88ms
64+
493899 requests in 10.10s, 63.59MB read
65+
Requests/sec: 48893.32
66+
Transfer/sec: 6.29MB
67+
```
3468
# Support / Donate 💚
3569
You can support the maintenance of this project:
3670
- PayPal: https://www.paypal.me/kyberneees

0 commit comments

Comments
 (0)