Vegeta: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 28: Line 28:


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
cat ResourceQuotasForFQNames.txt | vegeta attack -insecure -name=10RPS -rate=10 -duration=100s > results.10rps.bin
cat request.txt | vegeta attack -insecure -name=10RPS -rate=10 -duration=100s > results.10rps.bin
cat ResourceQuotasForFQNames.txt | vegeta attack -insecure -name=50RPS -rate=50 -duration=100s > results.50rps.bin
cat request.txt | vegeta attack -insecure -name=50RPS -rate=50 -duration=100s > results.50rps.bin
cat ResourceQuotasForFQNames.txt | vegeta attack -insecure -name=100RPS -rate=100 -duration=100s > results.100rps.bin
cat request.txt | vegeta attack -insecure -name=100RPS -rate=100 -duration=100s > results.100rps.bin
vegeta plot results.10rps.bin results.50rps.bin results.100rps.bin > plot.html
vegeta plot -title "Some Title" results.10rps.bin results.50rps.bin results.100rps.bin > plot.html
</syntaxhighlight>
</syntaxhighlight>

Revision as of 05:07, 21 July 2024

External

TODO

Internal

Install

Command Line

brew install vegeta

For Development

go get github.com/tsenart/vegeta/v12@v12.11.1

Command Line Operations

Generate a plot with three different RPS.

Generate the HTTP request in a text file.

Then:

cat request.txt | vegeta attack -insecure -name=10RPS -rate=10 -duration=100s > results.10rps.bin
cat request.txt | vegeta attack -insecure -name=50RPS -rate=50 -duration=100s > results.50rps.bin
cat request.txt | vegeta attack -insecure -name=100RPS -rate=100 -duration=100s > results.100rps.bin
vegeta plot -title "Some Title" results.10rps.bin results.50rps.bin results.100rps.bin > plot.html