Mercurial > hg > Members > nobuyasu > jungle_benchmark
view stress_write.rb @ 14:77a01d4fca04
capistrano file
author | Nobuyasu |
---|---|
date | Tue, 21 Jan 2014 09:28:28 +0900 |
parents | f94fc7812cd8 |
children |
line wrap: on
line source
#!/usr/bin/ruby require 'net/http' require 'benchmark' r = 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','/editMessage?bname=hello%20world&uuid=0&author=oshiro&key=0&msg=hogehoge',8080) } } puts r.real