{"id":325,"date":"2022-07-12T06:16:47","date_gmt":"2022-07-11T21:16:47","guid":{"rendered":"https:\/\/www.b64.pw\/blog\/?p=325"},"modified":"2022-07-12T06:16:48","modified_gmt":"2022-07-11T21:16:48","slug":"%e8%b2%a0%e8%8d%b7%e3%83%86%e3%82%b9%e3%83%88%e3%83%84%e3%83%bc%e3%83%ab%e3%81%aevegeta%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.b64.pw\/blog\/?p=325","title":{"rendered":"\u8ca0\u8377\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\u306evegeta\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"\n<p>\u30de\u30cb\u30e5\u30a2\u30eb\u306e\u901a\u308a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3046<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&gt; .\/go get -u  github.com\/tsenart\/vegeta       \ngo: go.mod file not found in current directory or any parent directory.\n        &#39;go get&#39; is no longer supported outside a module.\n        To build and install a command, use &#39;go install&#39; with a version,\n        like &#39;go install example.com\/cmd@latest&#39;\n        For more information, see https:\/\/golang.org\/doc\/go-get-install-deprecation\n        or run &#39;go help get&#39; or &#39;go help install&#39;.<\/code><\/pre><\/div>\n\n\n\n<p>\u30a8\u30e9\u30fc\u306b\u3088\u308b\u3068\u6700\u8fd1\u306fgo get\u3060\u3068\u5916\u90e8\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u6a21\u69d8\u3002<br>\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u305f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&gt; go install github.com\/tsenart\/vegeta@latest<\/code><\/pre><\/div>\n\n\n\n<p>\u306a\u304apowershell\u3067\u30d1\u30a4\u30d7\u3067\u4f7f\u304a\u3046\u3068\u3059\u308b\u3068<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code> echo  &#39;GET http:\/\/localhost:38081\/&#39; |vegeta attack -duration=1s |vegeta report\n2022\/07\/12 00:30:25 encode: can&#39;t detect encoding of &quot;stdin&quot;<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u3001\u3044\u3063\u305f\u3093\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>echo &quot;GET http:\/\/localhost:38081\/&quot;|vegeta attack -duration=1s -output result2.bin\nvegeta report -type=json result2.bin\n{&quot;latencies&quot;:{&quot;total&quot;:133301700,&quot;mean&quot;:2666034,&quot;50th&quot;:2515050,&quot;95th&quot;:5193200,&quot;99th&quot;:9292000,&quot;max&quot;:9292000},&quot;bytes_in&quot;:{&quot;total&quot;:3350,&quot;mean&quot;:67},&quot;bytes_out&quot;:{&quot;total&quot;:0,&quot;mean&quot;:0},&quot;earliest&quot;:&quot;2022-07-12T00:38:53.8787855+09:00&quot;,&quot;latest&quot;:&quot;2022-07-12T00:38:54.8613487+09:00&quot;,&quot;end&quot;:&quot;2022-07-12T00:38:54.8638598+09:00&quot;,&quot;duration&quot;:982563200,&quot;wait&quot;:2511100,&quot;requests&quot;:50,&quot;rate&quot;:50.88731187978544,&quot;throughput&quot;:50.75759259986785,&quot;success&quot;:1,&quot;status_codes&quot;:{&quot;200&quot;:50},&quot;errors&quot;:[]}<\/code><\/pre><\/div>\n\n\n\n<p>\u3069\u3046\u3082powershell\u306e\u30d1\u30a4\u30d7\u304c\u30d0\u30a4\u30ca\u30ea\u6d41\u305b\u306a\u3044\u3082\u3088\u3046\u3002<br>\u3057\u304b\u3082Linux\u306e\u30d1\u30a4\u30d7\u306e\u3088\u3046\u306b\u4e26\u5217\u52d5\u4f5c\u305b\u305a\u3001\u3044\u3063\u305f\u3093\u30d0\u30c3\u30d5\u30a1\u30ea\u30f3\u30b0\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u30e1\u30e2\u30ea\u3082\u901f\u5ea6\u3082\u30b3\u30b9\u30c8\u9ad8\u3044\u3068\u3044\u3046\u2026<br>\u306a\u3093\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\u2026<\/p>\n\n\n\n<p>\u53c2\u8003<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-hatena-blog wp-block-embed-hatena-blog\"><div class=\"wp-block-embed__wrapper\">\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"PowerShell \u3067 \u5916\u90e8\u30b3\u30de\u30f3\u30c9\u3092\u30d1\u30a4\u30d7\u3067\u6e21\u3059\u6642\u306e\u554f\u984c\u306b\u3064\u3044\u3066 - tech.guitarrapc.c\u00f3m\" src=\"https:\/\/hatenablog-parts.com\/embed?url=https%3A%2F%2Ftech.guitarrapc.com%2Fentry%2F2014%2F02%2F10%2F221121#?secret=8AbWzSFHEz\" data-secret=\"8AbWzSFHEz\" scrolling=\"no\" frameborder=\"0\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u30de\u30cb\u30e5\u30a2\u30eb\u306e\u901a\u308a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,25],"tags":[],"_links":{"self":[{"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=\/wp\/v2\/posts\/325"}],"collection":[{"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=325"}],"version-history":[{"count":2,"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=\/wp\/v2\/posts\/325\/revisions\/327"}],"wp:attachment":[{"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.b64.pw\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}