Mercurial > hg > Members > nobuyasu > jungle_benchmark
view stress_write_10000.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' puts Benchmark.measure { schedule = ARGV[0].to_i time = Time.now.to_i sleepTime = schedule - time #puts "sleeping ",sleepTime sleep(sleepTime) 5000.times {|i| ret = Net::HTTP.get('133.13.62.3','/editMessage?bname=hello%20world&uuid=0&author=shoshi&key=0&msg=hogehoge',8080) } }