view stress_read_5000_cassandra.rb @ 13:e3fe67fee803

adde hello_post.rb
author Nobuyasu
date Mon, 20 Jan 2014 17:01:44 +0900
parents 25802bdc577d
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
 sleep(sleepTime) 

 5000.times {|i|
  Net::HTTP.get('133.13.62.3','/showBoardMessage?bname=hello%20world',8080)
 }
}