Skip to content

Instantly share code, notes, and snippets.

@j2labs
Created March 13, 2012 07:54
Show Gist options
  • Save j2labs/2027506 to your computer and use it in GitHub Desktop.
Save j2labs/2027506 to your computer and use it in GitHub Desktop.
1000 downloads: gevent vs multiprocessing c1.small
With Multiprocessing:
Took 37.3345718384 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Multiprocessing:
Took 36.8940429688 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Multiprocessing:
Took 37.2605760098 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Multiprocessing:
Took 36.9774720669 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ vi downloading_complete.py
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Gevent:
Took 5.00462698936 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Gevent:
Took 5.04026007652 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Gevent:
Took 4.94622206688 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$ ./downloading_complete.py
With Gevent:
Took 7.62545204163 seconds...
ubuntu@domU-12-31-39-09-29-F2:~$
@kracekumar
Copy link

I think you will be able to answer my question . http://stackoverflow.com/questions/9994566/multiprocessing-vs-gevent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment