view stress_read_5000.rb @ 16:704bcc773b96

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

#!/usr/bin/ruby

require 'net/http'
require 'benchmark'

puts Benchmark.measure {
 schedule = ARGV[0].to_i
 time = Time.now.to_i 
 sleepTime = schedule - time
 #puts "sleeping ",sleepTime
 sleep(sleepTime) 
 5000.times {|i|
  puts i
  Net::HTTP.get('133.13.62.3','/showBoardMessage?bname=hello%20world&uuid=c52f3ee0-72ae-11e2-87ba-3295b3de4854&author=shoshi&key=0&msg=hogehoge',8080)
 }
}