#!/usr/bin/ruby require 'net/http' require 'benchmark' schedule = ARGV[0].to_i time = Time.now.to_i sleepTime = schedule - time sleep(sleepTime) tms = Benchmark.measure { count = ARGV[1].to_i count.times {|i| ret = Net::HTTP.get('bldsv12.cr.ie.u-ryukyu.ac.jp','/showBoardMessage?bname=hello%20world',8080) } } puts tms.real