You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fail ratio for each individual request is incorrect, and doesn't match the total fail ratio.
Expected behavior
The fail ratio is correct.
Actual behavior
The fail ratio is incorrect. For example, if 10 out of 10 requests fail, I'd expect the ratio to be 100%, but instead it is 50%.
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 10 10(50.00%) 2014 2009 2021 | 2000 0.75
--------------------------------------------------------------------------------------------------------------------------------------------
Total 10 10(100.00%) 0.75
Description of issue
The fail ratio for each individual request is incorrect, and doesn't match the total fail ratio.
Expected behavior
The fail ratio is correct.
Actual behavior
The fail ratio is incorrect. For example, if 10 out of 10 requests fail, I'd expect the ratio to be 100%, but instead it is 50%.
Environment settings
Steps to reproduce (for bug reports)
Create a trivial locustfile.py:
Run it against a host that doesn't have a web server running at all:
locust --host http://localhost --no-web --clients=10 --hatch-rate=2 --run-time=30
All of the "GET /" requests fail, but the stats (as shown above) have the failure rate at 50% rather than 100%.
I think the problem is at stats.py:279:
It seems like it ought to be:
Maybe at some point
self.num_requests
was only the count of successful requests?The text was updated successfully, but these errors were encountered: