rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.61k stars 1.17k forks source link

Bug: Inaccurate histogram #311

Open mblarsen opened 10 months ago

mblarsen commented 10 months ago

This run shows that average is 0.03s however according to the histogram it should be 1.018s

hey -n 50000 -c 120 https://api.toofast.app/v1/healthcheck

Summary:
  Total:    36.2391 secs
  Slowest:  9.8637 secs
  Fastest:  0.0351 secs
  Average:  0.0794 secs
  Requests/sec: 1377.5186

  Total data:   2046720 bytes
  Size/request: 41 bytes

Response time histogram:
  0.035 [1] |
  1.018 [49789] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  2.001 [9] |
  2.984 [1] |
  3.967 [2] |
  4.949 [0] |
  5.932 [66]    |
  6.915 [41]    |
  7.898 [6] |
  8.881 [1] |
  9.864 [4] |

Latency distribution:
  10% in 0.0485 secs
  25% in 0.0506 secs
  50% in 0.0533 secs
  75% in 0.0570 secs
  90% in 0.0628 secs
  95% in 0.0891 secs
  99% in 0.4389 secs

Details (average, fastest, slowest):
  DNS+dialup:   0.0009 secs, 0.0351 secs, 9.8637 secs
  DNS-lookup:   0.0006 secs, 0.0000 secs, 0.2211 secs
  req write:    0.0000 secs, 0.0000 secs, 0.0031 secs
  resp wait:    0.0775 secs, 0.0350 secs, 9.8636 secs
  resp read:    0.0000 secs, 0.0000 secs, 0.0073 secs

Status code distribution:
  [200] 49920 responses
image
snosratiershad commented 8 months ago

Details (average, fastest, slowest): DNS+dialup: 0.0009 secs, 0.0351 secs, 9.8637 secs

I'm also thinking how average is less then fastest