-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Running benchmark/http/incoming_headers.js
fails with error "autocannon produced strange output"
#31023
Comments
cc @mcollina |
@trivikr What do you get with |
Actually, never mind. I'm able to reproduce with latest autocannon (4.4.1). Have to set PATH to ignore So, @trivikr, if you want, a quick workaround might be to install |
I don't have my laptop with me right now, but it's the latest one. As per I installed it while testing headers benchmarks #31022 (comment) |
I think I see the bug in our code, or at least part of the bug. |
Looks like http/incoming_headers.js n=0 c=50 benchmarker="autocannon": 0
http/incoming_headers.js n=5 c=50 benchmarker="autocannon": 0
http/incoming_headers.js n=20 c=50 benchmarker="autocannon": 0
http/incoming_headers.js n=0 c=500 benchmarker="autocannon": 0
http/incoming_headers.js n=5 c=500 benchmarker="autocannon": 0
http/incoming_headers.js n=20 c=500 benchmarker="autocannon": 0
http/incoming_headers.js n=0 c=50 benchmarker="wrk": 7,224.63
http/incoming_headers.js n=5 c=50 benchmarker="wrk": 6,806.98
http/incoming_headers.js n=20 c=50 benchmarker="wrk": 6,542.53
http/incoming_headers.js n=0 c=500 benchmarker="wrk": 5,246.36
http/incoming_headers.js n=5 c=500 benchmarker="wrk": 4,281.04
http/incoming_headers.js n=20 c=500 benchmarker="wrk": 5,346.91 |
Also kind of strange, but if I uninstall $ which autocannon
$ ./node benchmark/http/incoming_headers.js
Error: autocannon produced strange output: {"url":"http://127.0.0.1:12346/","requests":{"average":0,"mean":0,"stddev":0,"min":0,"max":0,"total":0,"p0_001":0,"p0_01":0,"p0_1":0,"p1":0,"p2_5":0,"p10":0,"p25":0,"p50":0,"p75":0,"p90":0,"p97_5":0,"p99":0,"p99_9":0,"p99_99":0,"p99_999":0,"sent":1015},"latency":{"average":0,"mean":0,"stddev":0,"min":0,"max":0,"p0_001":0,"p0_01":0,"p0_1":0,"p1":0,"p2_5":0,"p10":0,"p25":0,"p50":0,"p75":0,"p90":0,"p97_5":0,"p99":0,"p99_9":0,"p99_99":0,"p99_999":0},"throughput":{"average":0,"mean":0,"stddev":0,"min":0,"max":0,"total":0,"p0_001":0,"p0_01":0,"p0_1":0,"p1":0,"p2_5":0,"p10":0,"p25":0,"p50":0,"p75":0,"p90":0,"p97_5":0,"p99":0,"p99_9":0,"p99_99":0,"p99_999":0},"errors":0,"timeouts":0,"duration":5.2,"start":"2019-12-18T18:38:37.115Z","finish":"2019-12-18T18:38:42.318Z","connections":50,"pipelining":1,"non2xx":0,"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0}
$ Also, note all the zeroes in the JSON results. |
Whoops, that was my mistake. Set my PATH incorrectly so was picking up a stray autocannon. |
Using http/incoming_headers.js n=0 c=50 benchmarker="test-double-http": 2,934
http/incoming_headers.js n=5 c=50 benchmarker="test-double-http": 1,420
http/incoming_headers.js n=20 c=50 benchmarker="test-double-http": 1,018
http/incoming_headers.js n=0 c=500 benchmarker="test-double-http": 953
http/incoming_headers.js n=5 c=500 benchmarker="test-double-http": 856
http/incoming_headers.js n=20 c=500 benchmarker="test-double-http": 820 |
Describe the bug
Running
benchmark/http/incoming_headers.js
fails with error "autocannon produced strange output" for:To Reproduce
Follow instructions in running benchmarks to run
benchmark/http/incoming_headers.js
Example:
Expected behavior
The
benchmark/http/headers.js
runs without any errorAdditional context
I came across this issue as part of running benchmarks while moving to
for...of
loop in the initial commits of #30958The text was updated successfully, but these errors were encountered: