I've been trying to figure why my Django Development Server is running 6-10x faster than mod_wsgi (which is supposed to be faster). I believe it must be restarting the Django process between requests, even though it shouldn't be until it hits it's MaxRequestsPerChild on a given process (correct me if I'm wrong).
So far I've tried: tweaking the daemon (processes=1/processes=2). Changing StartServers in apache2.conf (to 1, then back to 2 - no difference really). Switching to daemon mode (this improved things by a factor of 10 - apache was 100x slower before ;)
I'm running it in an Ubuntu VM.
Django Wsgi file: http://pastebin.com/qe1UG1iJ
My vhost configuration: http://pastebin.com/bqASHhD0
My apache configuration: http://pastebin.com/TfMGGvWc
ab results for apache: http://pastebin.com/bu5YWbqJ
ab results for development server: http://pastebin.com/MdX9V55e
top output while devserver is being benchmarked: http://pastebin.com/a7U0SL7B
top output while apache is being benchmarked: http://pastebin.com/21zqRHPF
My apache log file is showing a lot of these: http://pastebin.com/PVd5z9BB