【发布时间】:2018-02-15 22:27:54
【问题描述】:
我正在尝试执行基准阻塞与非阻塞 io。
作为一个阻塞,我使用 spring-boot。
作为一个非阻塞的播放框架。
I Call 端点进行 4 次远程调用(顺序)
结果如下:
春季启动
Running 5m test @ http://localhost:8080/remote-multiple
4 threads and 20000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 713.90ms 429.81ms 2.00s 82.16%
Req/Sec 33.04 22.55 340.00 68.84%
9602 requests in 5.00m, 201.85MB read
Socket errors: connect 15145, read 21942, write 0, timeout 2401
Requests/sec: 32.00
Transfer/sec: 688.83KB
播放框架
Running 5m test @ http://localhost:9000/remote-multiple
4 threads and 20000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.40s 395.00ms 2.00s 54.73%
Req/Sec 37.97 21.21 230.00 70.71%
39792 requests in 5.00m, 846.41MB read
Socket errors: connect 15145, read 36185, write 60, timeout 35944
Requests/sec: 132.61
Transfer/sec: 2.82MB
虽然 Play 显示更高的 Requests/sec,但它有更多的错误、超时、延迟。
谁能解释一下,结果中的所有这些参数是什么意思?
Requests/sec - 每秒成功请求吗?等等
附: 我在 MBP 2013、Intel Core i7、2.3 GHz、16GB 上运行此基准测试
【问题讨论】:
标签: spring-boot playframework benchmarking nonblocking wrk