vegeta icon indicating copy to clipboard operation
vegeta copied to clipboard

Vegeta real-time not working

Open wac2007 opened this issue 3 years ago • 1 comments

Version and Runtime

Version: 12.8.4
Commit: 
Runtime: go1.17.2 darwin/arm64
Date: 2020-10-11T10:37:33Z

Expected Behaviour

I'm trying to use real-time analysis as in readme, but not working as expected. I'm using iTerm on OSx (M1 chip), installed jaggr and jplot with brew, and receiving a broken pipe error.

Steps to Reproduce

The full initial command I tried:

echo 'GET http://localhost:3000/tablet-ipad/tablet-lenovo-tab-p11-za940394br-64gb-11-android-13-mp' | \
      vegeta attack -rate 60/1m -duration 5s | vegeta encode | \
      jaggr @count=rps \
            hist\[100,200,300,400,500\]:code \
            p25,p50,p95:latency \
            sum:bytes_in \
            sum:bytes_out | \
      jplot rps+code.hist.100+code.hist.200+code.hist.300+code.hist.400+code.hist.500 \
            latency.p95+latency.p50+latency.p25 \
            bytes_in.sum+bytes_out.sum

And get:

[1]    13551 done                echo  |
       13552 broken pipe         vegeta attack -rate 60/1m -duration 5s |
       13553 broken pipe         vegeta encode |
       13554 segmentation fault  jaggr @count=rps hist\[100,200,300,400,500\]:code p25,p50,p95:latency   |
       13555 segmentation fault  jplot  latency.p95+latency.p50+latency.p25 bytes_in.sum+bytes_out.sum

Then I tried just the first part (with jaggr only):

echo 'GET http://localhost:3000/tablet-ipad/tablet-lenovo-tab-p11-za940394br-64gb-11-android-13-mp' | \
      vegeta attack -rate 60/1m -duration 5s | vegeta encode | \
      jaggr @count=rps \
            hist\[100,200,300,400,500\]:code \
            p25,p50,p95:latency \
            sum:bytes_in \
            sum:bytes_out

With same result:

[1]    13572 done                echo  |
       13573 broken pipe         vegeta attack -rate 60/1m -duration 5s |
       13574 broken pipe         vegeta encode |
       13575 segmentation fault  jaggr @count=rps hist\[100,200,300,400,500\]:code p25,p50,p95:latency

Then i runned only the vegeta command saving the output to a json file output.txt (renamed to txt because github do not support json):

echo 'GET http://localhost:3000/tablet-ipad/tablet-lenovo-tab-p11-za940394br-64gb-11-android-13-mp' | \
      vegeta attack -rate 60/1m -duration 5s | vegeta encode >> output.json

I realized this file do not put commas, I don't know if this is expected.

PS: I tried replacing the url http://localhost:3000 to https://google.com and I get the same errors.

Hope someone can help!

wac2007 avatar Jul 20 '22 20:07 wac2007

+1 seeing this as well, same setup on M1 mac and zsh

nickmacioce avatar Aug 03 '22 21:08 nickmacioce