0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

vegetaでよく使うコマンド

0
Posted at

負荷テストで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を確認する

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?