Using the exact same code, it takes about 50ms every call to a logger method (such as logger.debug) on the server, while on the dev machine it's less than 1ms. The loggers are outputting to files, with a little bit of formatting.
Other than the slowdowns with logging, the server is twice as fast.
I'm developing on Ubuntu 11.04 (Gnome) running inside VMWare on Windows 7. The server is running Ubuntu Server 11.04 (no GUI, pure console). The logging module is the official "logging" module ("import logging ... logger = logging.getLogger('mylogger')").
Any idea what could be causing this? It is extremely frustrating!
Thanks for any help!
EDIT: Both machines return "Python 2.7.1+" for their version. Both machines are running 64-bit Ubuntu.
Hard drive configuration the server is software RAID-1, while in the dev computer just a single drive.
EDIT2: Accepted Fabian's answer as it was thorough, although it didnt't quite solve the problem.
Solution: Writing to the console, period, is extremely slow. I tested writing X to file, and writing X to the console, and it was about 100x slower to the console. I don't know why that would be, but I just ran what I was running with ssh from another computer and everything was solved.