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

Understanding Error distribution & Status Code distribution in hey output #283

Open
ankitanallana-livongo opened this issue Aug 31, 2022 · 1 comment

Comments

@ankitanallana-livongo
Copy link

So, I was just running some load testing with hey for an application locally and in my result I see this:

% hey -n 500 -c 10 -m GET -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d '{"memberId":"1800"}' http://localhost:30001/path

Summary:
  Total:	20.6886 secs
  Slowest:	0.6256 secs
  Fastest:	0.1444 secs
  Average:	0.3030 secs
  Requests/sec:	24.1679

  Total data:	227000 bytes
  Size/request:	908 bytes

Response time histogram:
  0.144 [1]	|■
  0.193 [37]	|■■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.241 [55]	|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.289 [38]	|■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  0.337 [31]	|■■■■■■■■■■■■■■■■■■■■■■■
  0.385 [18]	|■■■■■■■■■■■■■
  0.433 [35]	|■■■■■■■■■■■■■■■■■■■■■■■■■
  0.481 [26]	|■■■■■■■■■■■■■■■■■■■
  0.529 [4]	|■■■
  0.577 [1]	|■
  0.626 [4]	|■■■


Latency distribution:
  10% in 0.1734 secs
  25% in 0.2129 secs
  50% in 0.2795 secs
  75% in 0.4011 secs
  90% in 0.4465 secs
  95% in 0.4728 secs
  99% in 0.6213 secs

Details (average, fastest, slowest):
  DNS+dialup:	0.0009 secs, 0.1444 secs, 0.6256 secs
  DNS-lookup:	0.0006 secs, 0.0000 secs, 0.0013 secs
  req write:	0.0000 secs, 0.0000 secs, 0.0004 secs
  resp wait:	0.3020 secs, 0.1435 secs, 0.6245 secs
  resp read:	0.0000 secs, 0.0000 secs, 0.0001 secs

Status code distribution:
  [200]	250 responses

Error distribution:
  [250]	Get "http://localhost:30001/signals": EOF

I ran the test with 500 requests, why does it say 250 responses in Status Code distribution? And what does Error distribution mean? The EOF bit doesn't tell me much. Were 500 or 250 tests run in the end?

@ankitanallana-livongo ankitanallana-livongo changed the title Understanding Error distribution Understanding Error distribution & Status Code distribution in hey output Aug 31, 2022
@mhnaufal
Copy link

mhnaufal commented Sep 6, 2022

It was 500. 250 responses in Status code distribution + 250 from Error distribution cmiiw

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

No branches or pull requests

2 participants