Tagged with zend

Zend Framework vs. Django Performance

This is not a scientific nor rigorious test…  But, here’s some interesting data for people to chew on.  I’ve got a production site built using the Zend Framework and a beta site built using django.  What’s interesting is the “Time spent downloading a page” graphs from Google Webmaster Tools.

The Zend Framwork Graph — average speed is 458 ms with a min of 246 ms

wink_time

The django graph — you can see where I changed from CGI style to FCGI in the speed — average is 531, and a min is 81ms — though my eyeball average for the month of April is 100ms.

zapquiz_time1

The nice part is these graphs have the same scale, so it’s pretty clear that once I switched from CGI to FCGI (under lighttpd) that the django performance is 4x better than the ZF.

Tagged , ,

Frameworks and sessions

I hate sessions, they’re evil.

PHP is the worst offender since it’s built into the language and you end up with effective scalability limitations and turds in your temp file system. django isn’t much better since all of the cool admin functionality is built using the contrib.auth module which depends on sessions as well. Long ago in a galaxy far away I learned that such assumptions are bad, you should handle your authentication with some cookies that are totally independent of your application. Your sessions state should be passed around via posts or other URL tricks…

Don’t get me started today on the detail that django requires a “username” to authenticate. Half tempted to write the “uber auth” module which allows for both email registration and facebook/google connect, etc. authentication.

Tagged , ,