Created
February 25, 2017 10:17
-
-
Save jacoyutorius/385945fca0abf986a19f18151c410d30 to your computer and use it in GitHub Desktop.
wrkでサーバーチューニングするための環境
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| # gem "rails" | |
| gem "awesome_print" | |
| gem "wrk_parser", git: "https://github.com/jacoyutorius/wrk_parser.git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "awesome_print" | |
| require "wrk_parser" | |
| ret = [] | |
| 5.times do | |
| ret << `wrk -t12 -c400 -d5s http://localhost` | |
| end | |
| # ap ret | |
| ret.each do |data| | |
| ap WrkParser::Core.new.exec(data) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment