bottle.py on EC2 micro instance causes 2 order of magnitude slowdown

Posted by user61633 on Server Fault See other posts from Server Fault or by user61633
Published on 2010-12-20T16:31:23Z Indexed on 2011/01/05 22:55 UTC
Read the original article Hit count: 207

Cross-posted from StackOverflow:

I wrote a little toy script to solve this type of game, and put it on my new micro EC2 instance. It works perfectly, but while it takes around 0.5 seconds to run a local version, and takes under 0.5 seconds to run both the local and the bottle.py version on my home computer, running the bottle.py version on the EC2 instance takes over 2 minutes.

Python has the cpu pegged at 99% the entire time. Only 7.4% memory usage, consistently, and no swapping. The only guess I have is initialization time for bottle.py on EC2, but if it were that, why would it be ~200x faster on my own computer with bottle.py?

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about python