我正在尝试进行阻塞和非阻塞IO的基准测试。我使用Spring Boot作为阻塞选项,Play框架作为非阻塞选项。我调用了一个端点,该端点会依次进行4个远程调用。以下是测试结果:
Spring Boot:
Spring Boot:
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
Play框架
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
- 每秒成功请求的数量吗?等等
P.S.: 我在MBP 2013上运行此基准测试,Intel Core i7,2.3 GHz,16GB