Sha256: 1b894ddfeef5ce3b8f8082f6b18590252cc9ddbcd5c218972c319fec7b00e5dd
Contents?: true
Size: 377 Bytes
Versions: 7
Compression:
Stored size: 377 Bytes
Contents
require 'benchmark' require 'net/http' require 'curb' urls = ['http://www.google.com'] * 100 Benchmark.bm(11) do |b| b.report('Net::HTTP') do urls.each do |url| Net::HTTP.get URI.parse url end end b.report('Curl::Easy') do urls.each do |url| Curl::Easy.perform url end end b.report('Curl::Multi') do Curl::Multi.get urls end end
Version data entries
7 entries across 7 versions & 2 rubygems