view stress_read_jungle.rb @ 16:704bcc773b96

Modifed capistrano file
author Nobuyasu
date Fri, 24 Jan 2014 18:09:16 +0900
parents 25802bdc577d
children
line wrap: on
line source

#!/usr/bin/ruby

require 'net/http'
require 'benchmark'

tms = Benchmark.measure {
 schedule = ARGV[0].to_i
 time = Time.now.to_i 
 sleepTime = schedule - time
 sleep(sleepTime) 

 count = ARGV[1].to_i
 count.times {|i|
  Net::HTTP.get('133.13.62.3','/showBoardMessage?bname=hello%20world',8080)
 }
}
puts tms.real