Closed binarytracer closed 7 years ago
timeout: the number of seconds we wait for a response to arrive. We wait 10 by default. This is consistent with the MAX latency you are seeing, 9 seconds. Some requests go over.
errors: timeout plus other errors, like 500.
Thanks, @mcollina
just updated my post.
knowing that kind of situation, what needs to be done? Do i need to to adjust the express application or i need to adjust autocannon configuration?
The bug is in the express application.
You can adjust the timeout period to be larger if you want to see what the max delay is without a timeout. Check the readme for how to do this. However a 10 second+ latency/response delay is probably not what you want for your application anyway, so I would advise you to keep treating it as an error :)
thanks @thekemkid and @mcollina, :thumbsup: this npm works great.
Im currently benchmarking an Express App,
benchmark.js
round 1
6k requests in 28s, 4.18 MB read
round 2
5k requests in 12s, 3.78 MB read 573 errors (573 timeouts) finished benchmarking
Error logging
I would like to know what causes it to trigger errors / timeout?