Skip to content

Commit 5a4386a

Browse files
committed
adding express benchmark results
1 parent 24e36a5 commit 5a4386a

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Introduction
2-
Experimental, bun-based HTTP framework inspired by 0http!
2+
Experimental, bun-based HTTP framework inspired by [0http](https://0http.21no.de/#/)
33

44
## Usage
55
```js
@@ -31,7 +31,7 @@ module.exports = {
3131
}
3232
```
3333
# Benchmarks
34-
## 0http-bun
34+
## 0http-bun (bun v0.2.2)
3535
```
3636
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
3737
Running 10s test @ http://127.0.0.1:3000/hi
@@ -48,7 +48,7 @@ Running 10s test @ http://127.0.0.1:3000/hi
4848
Requests/sec: 103397.66
4949
Transfer/sec: 12.62MB
5050
```
51-
## 0http-node
51+
## 0http (node v18.2.0)
5252
```
5353
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
5454
Running 10s test @ http://127.0.0.1:3000/hi
@@ -65,6 +65,23 @@ Running 10s test @ http://127.0.0.1:3000/hi
6565
Requests/sec: 48893.32
6666
Transfer/sec: 6.29MB
6767
```
68+
## express (node v18.2.0)
69+
```
70+
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
71+
Running 10s test @ http://127.0.0.1:3000/hi
72+
4 threads and 50 connections
73+
Thread Stats Avg Stdev Max +/- Stdev
74+
Latency 4.99ms 0.90ms 20.31ms 89.52%
75+
Req/Sec 2.42k 154.52 2.66k 82.25%
76+
Latency Distribution
77+
50% 4.67ms
78+
75% 4.83ms
79+
90% 6.03ms
80+
99% 8.43ms
81+
96296 requests in 10.01s, 21.95MB read
82+
Requests/sec: 9622.74
83+
Transfer/sec: 2.19MB
84+
```
6885
# Support / Donate 💚
6986
You can support the maintenance of this project:
7087
- PayPal: https://www.paypal.me/kyberneees

0 commit comments

Comments
 (0)