Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report details fix #109

Merged
merged 3 commits into from
Jul 5, 2019
Merged

Report details fix #109

merged 3 commits into from
Jul 5, 2019

Conversation

ezsilmar
Copy link
Contributor

@ezsilmar ezsilmar commented Jul 4, 2019

Working further with ghz I observed strange values in the csv report.

There are four fields in the report: Timestamp, Latency, Status and Error. The problem is that sometimes latency doesn't correspond to status. F.e., I have a row with DeadlineExceeded status, but latency (350 ms) is still inside specified client timeout (500ms) which makes no sense.

It turns out there's a bug in the reporter. If there're errors during the test they are not counted in lats array. However, both errors and oks are recorded in statuses array. So, the index in lats doesn't always correspond to the index in other stat arrays.

This PR fixes the problem. Details array is recorded right away during background report processing. Then filtering is used to compute percentiles of successful requests.

@bojand bojand merged commit b9b7ebb into bojand:master Jul 5, 2019
@bojand
Copy link
Owner

bojand commented Jul 5, 2019

Hello, thank you for the PR! I see the issue 🤦‍♂ and this is a good catch. I like the code changes. I made minor code style change. This has been released as 0.39.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants