-
Notifications
You must be signed in to change notification settings - Fork 402
Open
Description
As you can see in my write-up here, wrk2 can produce bad results under certain conditions. For example:
wrk2/wrk -d5 -c1000 -t250 -R 10000000 "http://localhost:8085/multiply?a=2&b=3"
Running 5s test @ http://localhost:8085/multiply?a=2&b=3
250 threads and 1000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.97s 1.28s 4.93s 60.75%
Req/Sec -nan -nan 0.00 0.00%
833071 requests in 1.25ms, 223.25MB read
Socket errors: connect 0, read 0, write 0, timeout 29
Requests/sec: 663801593.63
Transfer/sec: 173.72GB
See how I specified 250 threads, and a 5s test? Well, it did create 833071 requests in 5s, but as you see, it thinks it did it in 1.25ms, producing a ridiculous figure of 663 million requests/sec.
It doesn't always think it's finished in milliseconds. Sometimes it is more like 1s and other times closer to 5.
You can check out my repository that uses wrk2 here if you want to reproduce the bug.
Metadata
Metadata
Assignees
Labels
No labels