Mercurial > hg > Members > nobuyasu > jungle_benchmark
comparison stress_write_jungle.rb @ 0:f049a3340d2c
added some files
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 17 Jul 2013 08:07:00 +0900 |
parents | |
children | f94fc7812cd8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f049a3340d2c |
---|---|
1 #!/usr/bin/ruby | |
2 | |
3 require 'net/http' | |
4 require 'benchmark' | |
5 | |
6 r = Benchmark.measure { | |
7 schedule = ARGV[0].to_i | |
8 time = Time.now.to_i | |
9 sleepTime = schedule - time | |
10 sleep(sleepTime) | |
11 count = ARGV[1].to_i | |
12 count.times {|i| | |
13 Net::HTTP.get('133.13.62.3','/editMessage?bname=hello%20world&uuid=0&author=oshiro&key=0&msg=hogehoge',8080) | |
14 } | |
15 } | |
16 puts r.real |