gpt4 book ai didi

spring-boot - WRK 基准测试 : Please explain results

转载 作者:行者123 更新时间:2023-12-04 03:01:34 26 4
gpt4 key购买 nike

我正在尝试执行基准阻塞与非阻塞 io。

作为阻塞,我使用 spring-boot。

作为一个非阻塞- Play Framework 。

I Call 进行 4 个远程调用的端点(依次)

以下是结果:

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 Framework
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 - 每秒成功请求数?等等

PS:
我在 MBP 2013、Intel Core i7、2.3 GHz、16GB 上运行此基准测试

最佳答案

如果您发布基准测试:从指向实际基准测试代码的链接开始。没有它就没有值(value)。第二:通常,在同一台机器上测试代码被认为是不好的做法。

关于spring-boot - WRK 基准测试 : Please explain results,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46092013/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com