Skip to content

Commit

Permalink
typhoeus: disabled memoization and set a max concurrency limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Apr 19, 2012
1 parent 241bbcc commit d75c712
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions benchmarks/clients.rb
Expand Up @@ -120,7 +120,8 @@
end

tach('Typhoeus') do |n|
hydra = Typhoeus::Hydra.new
hydra = Typhoeus::Hydra.new( max_concurrency: 8 )
hydra.disable_memoization
count = 0
error = 0
n.times {
Expand All @@ -143,27 +144,27 @@
#+------------------------------+-----------+
#| tach | total |
#+------------------------------+-----------+
#| Typhoeus | 0.005322 |
#| em-http-request (persistent) | 0.145512 |
#+------------------------------+-----------+
#| em-http-request (persistent) | 0.134937 |
#| Excon | 0.181564 |
#+------------------------------+-----------+
#| Excon | 0.172941 |
#| RestClient | 0.253127 |
#+------------------------------+-----------+
#| Net::HTTP (persistent) | 0.213400 |
#| Net::HTTP | 0.294412 |
#+------------------------------+-----------+
#| Net::HTTP | 0.216407 |
#| HTTParty | 0.305397 |
#+------------------------------+-----------+
#| HTTParty | 0.218760 |
#| open-uri | 0.307007 |
#+------------------------------+-----------+
#| RestClient | 0.238830 |
#| Net::HTTP (persistent) | 0.313716 |
#+------------------------------+-----------+
#| open-uri | 0.282000 |
#| Typhoeus | 0.514725 |
#+------------------------------+-----------+
#| curb (persistent) | 3.982839 |
#| curb (persistent) | 3.981700 |
#+------------------------------+-----------+
#| StreamlyFFI (persistent) | 3.984747 |
#| StreamlyFFI (persistent) | 3.989063 |
#+------------------------------+-----------+
#| Excon (persistent) | 4.019305 |
#| Excon (persistent) | 4.018761 |
#+------------------------------+-----------+
#| em-http-request | 15.034792 |
#| em-http-request | 15.025291 |
#+------------------------------+-----------+

0 comments on commit d75c712

Please sign in to comment.