tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.51k stars 1.36k forks source link

Combine results #348

Closed tiagoliveira9 closed 6 years ago

tiagoliveira9 commented 6 years ago

Question

I want to make a plot with several results, how can I do that?

Thanks

tsenart commented 6 years ago

vegeta plot -h

tiagoliveira9 commented 6 years ago

that option does not exist but I found the solution:

vegeta plot results.bin results2.bin > plot.html Thanks for the great work on Vegeta!

tsenart commented 6 years ago

The help flag doesn’t exist? That’s a problem. Can you share the details of your version and OS?

tiagoliveira9 commented 6 years ago

I'm on Fedora 28, 4.18.16-200.fc28.x86_64. I've downloaded the binary vegeta-12.1.0-linux-amd64.tar.gz .

tsenart commented 6 years ago

And what’s the output of vegeta report -h

tiagoliveira9 commented 6 years ago

`Usage: vegeta report [options] [...]

Outputs a report of attack results.

Arguments:

A file with vegeta attack results encoded with one of the supported encodings (gob | json | csv) [default: stdin] Options: --type Which report type to generate (text | json | hist[buckets]). [default: text] --every Write the report to --output at every given interval (e.g 100ms) The default of 0 means the report will only be written after all results have been processed. [default: 0] --output Output file [default: stdout] Examples: echo "GET http://:80" | vegeta attack -rate=10/s > results.gob echo "GET http://:80" | vegeta attack -rate=100/s | vegeta encode > results.json vegeta report results.* `
tsenart commented 6 years ago

So the flag does exist after all? What happened at first?

tsenart commented 6 years ago

Sorry, I meant: vegeta plot -h

tiagoliveira9 commented 6 years ago

`Usage: vegeta plot [options] [...]

Outputs an HTML time series plot of request latencies over time. The X axis represents elapsed time in seconds from the beginning of the earliest attack in all input files. The Y axis represents request latency in milliseconds.

Click and drag to select a region to zoom into. Double click to zoom out. Choose a different number on the bottom left corner input field to change the moving average window size (in data points).

Arguments:

A file with vegeta attack results encoded with one of the supported encodings (gob | json | csv) [default: stdin] Options: --title Title and header of the resulting HTML page. [default: Vegeta Plot] --threshold Threshold of data points to downsample series to. Series with less than --threshold number of data points are not downsampled. [default: 4000] Examples: echo "GET http://:80" | vegeta attack -name=50qps -rate=50 -duration=5s > results.50qps.bin cat results.50qps.bin | vegeta plot > plot.50qps.html echo "GET http://:80" | vegeta attack -name=100qps -rate=100 -duration=5s > results.100qps.bin vegeta plot results.50qps.bin results.100qps.bin > plot.html`
tiagoliveira9 commented 6 years ago

I'm doing this "vegeta plot results2.bin results3.bin > plot2.html" and it's working okay for me. I don't understand the point of having the flag "h", what is supposed to do?

tsenart commented 6 years ago

Protip: You can three backticks for multiline blocks of code.

So, regarding the output of vegeta plot -h, there you go, that's what I wanted you to see when I wrote my first reply here.

It is the user manual. -h stands for help. So you can call -h on any command to learn how to use it!

tsenart commented 6 years ago

Estou em modo didático, Tiago :-)

tiagoliveira9 commented 6 years ago

Damn xD I'm so focused on benchmarking a lot of stuff at the same time that I was not "seeing"... yes, flag h is help in 99% of the flags on the universe xD Obrigado!

tsenart commented 6 years ago

De nada 😇