Mercurial > hg > Members > nobuyasu > jungle_benchmark
view stress_write.rb @ 13:e3fe67fee803
adde hello_post.rb
author | Nobuyasu |
---|---|
date | Mon, 20 Jan 2014 17:01:44 +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