Performance comparison between Gin, Chi, echo, fiber and iris web frameworks and net/http library
- Mem: 7.73G
- Swap: 2.00G
- CPU op-mode(s): 32-bit, 64-bit
- Byte Order: Little Endian
- Address sizes: 39 bits physical, 48 bits virtual
- CPU(s): 4
- On-line CPU(s) list: 0-3
- Thread(s) per core: 1
- Core(s) per socket: 4
- Socket(s): 1
- Vendor ID: GenuineIntel
- CPU family: 6
- Model: 158
- Model name: Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
- Stepping: 9
- CPU MHz: 3000.001
- BogoMIPS: 6000.00
web framework | worker | user | rps | rt | user | rps | rt | user | rps | rt | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
chi | 4 | 1 | 420 | 5ms | 10 | 770 | 30ms | 20 | 1100 | 35ms | ||
iris | 4 | 1 | 460 | 4ms | 10 | 1100 | 20ms | 20 | 1200 | 40ms | ||
gin | 4 | 1 | 400 | 6ms | 10 | 740 | 30ms | 20 | 870 | 45ms | ||
echo | 4 | 1 | 660 | 2ms | 10 | 2100 | 12ms | 20 | 2200 | 17ms | ||
fiber | 4 | 1 | 650 | 3ms | 10 | 2200 | 10ms | 20 | 2250 | 18ms | ||
net/http library | 4 | 1 | 630 | 2ms | 10 | 1800 | 13ms | 20 | 2100 | 17ms |
and the result of the load test taken on Fast API. In the same situation as Go web frameworks. The API was the GET method and returned only a simple Json
web framework | worker | user | rps | rt | user | rps | rt | user | rps | rt | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
fastapi | 4 | 1 | 310 | 7 ms | 10 | 480 | 33ms | 20 | 505 | 60 ms |