Created
June 28, 2014 10:12
-
-
Save a-chernykh/83a486438445d47d92a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%i(net_http em_http typhoeus).each do |method| | |
Benchmark.bm(15) do |x| | |
(5..100).step(5) do |c| | |
x.report("#{method} #{c}") { send("download_#{method}", urls, c) } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment