Tornado 和 Gin 框架性能实测
机器配置24核,使用apache benchmark测试,请求内容返回结果一定
- Tornado单进程,并发4:
Req/Sec:971.4 MSec/Req:4.1 CPU:100%
- Tornado单进程,并发20:
Req/Sec:1159.2 MSec/Req:17.2 CPU:100%
- Tornado多进程(24),并发20:
Req/Sec:=5284.7 MSec/Req:3.8 CPU:1200%
- Tornado多进程(24),并发100:
Req/Sec:=15015.2 MSec/Req:6.6 CPU:2300%
- Tornado多进程(24),并发200:
Req/Sec:=15264.26 MSec/Req:13.1 CPU:2300%
- Gin多协程,并发20:
Req/Sec:=10723.2 MSec/Req:1.9 CPU:400%
- Gin多协程,并发100:
Req/Sec:=16342.8 MSec/Req:6.1 CPU:1700%
- Gin多协程,并发200:
Req/Sec:=16153.9 MSec/Req:12.4 CPU:1700%
- (另一台机器)BRpc多线程, 并发100:
Req/Sec:=23300 MSec/Req:4.2 CPU:150%