我正在尝试执行基准拦截和非阻塞io。
作为阻塞,我使用弹簧靴。
作为一个非阻塞的游戏框架。
I调用端点,它发出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.83KBPlay框架
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 -是否每秒都有完整的请求?等
P.S.:我在MBP上运行这个基准,英特尔核心i7,2.3 GHz,16 i7
发布于 2017-09-18 11:04:00
如果您发布基准测试:从指向实际基准代码的链接开始。没有它就没有价值。第二:通常,在同一台机器上测试代码被认为是错误的做法。
https://stackoverflow.com/questions/46092013
复制相似问题