Skip to content
Browse files

typhoeus: disabled memoization and set a max concurrency limit

  • Loading branch information...
1 parent 241bbcc commit d75c7125f4314fbb902f497ada91eb26e1bf585b @Zapotek Zapotek committed Apr 19, 2012
Showing with 14 additions and 13 deletions.
  1. +14 −13 benchmarks/clients.rb
View
27 benchmarks/clients.rb
@@ -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 {
@@ -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.
Something went wrong with that request. Please try again.