Skip to content

Instantly share code, notes, and snippets.

@j2labs
Created March 13, 2012 08:06
Show Gist options
  • Save j2labs/2027537 to your computer and use it in GitHub Desktop.
Save j2labs/2027537 to your computer and use it in GitHub Desktop.
1000 conncurrent downloads: gevent vs. multiprocessing on c1.medium
With Gevent:
Took 4.23808407784 seconds...
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Gevent:
Took 9.72512888908 seconds...
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Gevent:
Took 4.29909491539 seconds...
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Gevent:
Took 3.74559497833 seconds...
ubuntu@ip-10-244-197-204:~$ vi downloading_complete.py
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Multiprocessing:
Took 11.4665567875 seconds...
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Multiprocessing:
Took 11.368792057 seconds...
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Multiprocessing:
Took 11.7913930416 seconds...
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Multiprocessing:
Took 12.0197970867 seconds...
ubuntu@ip-10-244-197-204:~$ vi downloading_complete.py
ubuntu@ip-10-244-197-204:~$ ./downloading_complete.py
With Gevent:
Took 3.92761707306 seconds...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment