From: "DEBAUN, STEVE [AG-Contractor/2400]" Date: 2006-05-18T07:58:28+09:00 Subject: bm + net/http sanity check ------_=_NextPart_001_01C67A05.5FF86569 Content-Type: text/plain Hey all, I'm using this in a quick-n-dirty script: Benchmark.bm { |bm| [root1, root2].each_with_index { |host,i| bm.report("HTTP Host ##{i}: #{host}") { Net::HTTP.get host, "/#{stem}" } } [root1, root2].each_with_index { |host,i| r = `ping #{host}`[/Average = (.*)ms/] puts "Ping Host ##{i+1}: #{r}" } } To benchmark response times for two different websites. Is there anything I'm incorrectly assuming about the Net::HTTP stuff, or does this sound like a reasonable comparison? Only reason I'm asking: ping delta is about 100 ms, but the Net::HTTP delta is about 700 ms. This does not jive with what I'm expecting, at all. sd ------_=_NextPart_001_01C67A05.5FF86569--