File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Introduction
2
- Experimental, bun-based HTTP framework inspired by 0http!
2
+ Experimental, bun-based HTTP framework inspired by [ 0http] ( https://0http.21no.de/#/ )
3
3
4
4
## Usage
5
5
``` js
@@ -31,7 +31,7 @@ module.exports = {
31
31
}
32
32
```
33
33
# Benchmarks
34
- ## 0http-bun
34
+ ## 0http-bun (bun v0.2.2)
35
35
```
36
36
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
37
37
Running 10s test @ http://127.0.0.1:3000/hi
@@ -48,7 +48,7 @@ Running 10s test @ http://127.0.0.1:3000/hi
48
48
Requests/sec: 103397.66
49
49
Transfer/sec: 12.62MB
50
50
```
51
- ## 0http- node
51
+ ## 0http ( node v18.2.0)
52
52
```
53
53
% wrk -t4 -c50 -d10s --latency http://127.0.0.1:3000/hi
54
54
Running 10s test @ http://127.0.0.1:3000/hi
@@ -65,6 +65,23 @@ Running 10s test @ http://127.0.0.1:3000/hi
65
65
Requests/sec: 48893.32
66
66
Transfer/sec: 6.29MB
67
67
```
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
+ ```
68
85
# Support / Donate 💚
69
86
You can support the maintenance of this project:
70
87
- PayPal: https://www.paypal.me/kyberneees
You can’t perform that action at this time.
0 commit comments