Mercurial > hg > Members > nobuyasu > jungle_benchmark
view stress_read_jungle.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' tms = 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','/showBoardMessage?bname=hello%20world',8080) } } puts tms.real