alexfernandez / loadtest

Runs a load test on the selected URL. Fast and easy to use. Can be integrated in your own workflow using the API.
MIT License
2.57k stars 209 forks source link

Number of total requests is incorrect #238

Closed fetis closed 4 months ago

fetis commented 5 months ago

I execute this command

npx loadtest -t 5 -c 25 http://localhost:8080/public-api/xxx

and loadtest reports to me about 359 completed requests, but in reality when I check my server logs I see that total amount of requests were 509

I'm using v8

Full output

Max time (s):        5
Concurrent clients:  150
Running on cores:    6
Agent:               none

Completed requests:  359
Total errors:        0
Total time:          6.409 s
Mean latency:        1629 ms
Effective rps:       56
alexfernandez commented 4 months ago

Hi @fetis , the number of actual requests may be higher when limited by time, as there may be inflight requests at the time of stopping.