Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
heynemann committed Nov 20, 2013
1 parent 4f12826 commit e5b3a2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,12 @@ The results for retrieving `2000` urls with `200` threads is as follows:

[requests] Retrieving 2000 urls took 2692.66 seconds meaning 0.74 urls/second.

[octopus] Retrieving 2000 urls took 33.56 seconds meaning 59.59 urls/second.
[octopus] Retrieving 2000 urls took 38.40 seconds meaning 52.09 urls/second.

[octopus] Retrieving 2000 urls with local in-memory caching took 2.43 seconds
meaning 821.95 urls/second.
[octopus] Retrieving 2000 urls with local in-memory caching took 5.10 seconds meaning 392.10 urls/second.

Overall, octopus was more than 80.00 times faster than sequential requests.
[octopus-tornado] Retrieving 2000 urls took 169.72 seconds meaning 11.78 urls/second.

[octopus-tornado-pycurl] Retrieving 2000 urls took 165.90 seconds meaning 12.06 urls/second.

Overall, threaded octopus was more than 70 times faster than sequential requests and tornado octopus was more than 16 times faster than sequential requests.
4 changes: 1 addition & 3 deletions benchmark/test_octopus.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def main(repetitions, concurrency):

# alexa top sites
urls = [
'http://google.com',
'http://facebook.com',
'http://youtube.com',
'http://yahoo.com',
Expand All @@ -27,7 +26,6 @@ def main(repetitions, concurrency):
'http://wordpress.com',
'http://bing.com',
'http://ebay.com',
'http://google.de',
'http://tumblr.com',
]

Expand Down Expand Up @@ -84,7 +82,7 @@ def main(repetitions, concurrency):

print "Overall, threaded octopus was more than %d times faster than sequential requests and tornado octopus was more than %d times faster than sequential requests." % (
int(requests_total_time / otto_total_time),
int(tornado_pycurl_total_time / otto_total_time)
int(requests_total_time / tornado_pycurl_total_time)
)

print
Expand Down

0 comments on commit e5b3a2e

Please sign in to comment.