負荷テストでvegetaを使うときによく使うコマンド
# ローカルのサーバーに30rpsの負荷を10秒行う場合
$ echo 'GET http://localhost:8080' | vegeta attack -rate=30 -duration=10s > results.bin | vegeta report && cat results.bin | vegeta plot > plot.html
Requests [total, rate, throughput] 300, 30.10, 30.10
Duration [total, attack, wait] 9.968s, 9.967s, 1.618ms
Latencies [min, mean, 50, 90, 95, 99, max] 1.002ms, 1.912ms, 1.394ms, 1.929ms, 2.148ms, 19.37ms, 24.621ms
Bytes In [total, mean] 1800, 6.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 100.00%
Status Codes [code:count] 200:300
Error Set:
plot.htmlを確認する
