Skip to content

Instantly share code, notes, and snippets.

@jacoyutorius
Created February 25, 2017 10:17
Show Gist options
  • Select an option

  • Save jacoyutorius/385945fca0abf986a19f18151c410d30 to your computer and use it in GitHub Desktop.

Select an option

Save jacoyutorius/385945fca0abf986a19f18151c410d30 to your computer and use it in GitHub Desktop.
wrkでサーバーチューニングするための環境
# frozen_string_literal: true
source "https://rubygems.org"
# gem "rails"
gem "awesome_print"
gem "wrk_parser", git: "https://github.com/jacoyutorius/wrk_parser.git"
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