Framework benchmarks

Posted 22:21, on 2/7/2008 in Web

There's an interesting blog post floating around today with benchmarks of the various PHP frameworks. In this article an identical (but basic) application is created using each, and then run through its paces using httperf on the same hardware under a number of different configurations. The source code is provided for each, and the article also includes comparative benchmarks from non PHP frameworks such as Rails.

Comparing frameworks is a tricky beast. Any framework will add some overhead to an application, the amount of overheard generally depends on:

For this reason, lightweight frameworks will always come out on top in 'hello world' type tests, since such tests use basically none of the features the frameworks provide. But as the test apps get more complicated, the more fully featured frameworks should start to come into their own. The conclusion of these discussions is always that there is no 'best' or 'worst' framework, you use the right tool for the job.

Having said that, I still think there is value in these benchmarks. I've said before that I believe performance should be one of the main goals for any framework, as the thousands of applications that will be build upon the code can only be as fast as the framework itself is.

Although ZF comes out fairly well in these tests, I was a little surprised that ZF + APC didn't out perform Rails. I'm looking forwarding to seeing what affect (if any) Zend's upcoming performance review has. I also have some ideas of my own on how to tweak the framework to squeeze up the numbers - more on this when I have a big enough app to test some things on.

Comments (0) Tags: benchmarks, frameworks, php

Add Comment

External articles that may be of interest:

Rasmus - PHP Performance

Full video of a talk Rasmus gave at Digg HQ on PHP performance. After a brief look at PHP 5.3's new features he sets about improving the performance of an out-of-the-box Wordpress installation.

Adobe releases 64-bit flash player for Linux

Adobe have released an alpha of their 64-bit flash player for Linux (I believe this is the first 64-bit player they've done on any platform, it's not available for Windows or Mac yet). And it works great. It may be an alpha but so far I've found it considerably more stable than the released 32-bit wrapper version. It also uses considerably less CPU power. Easy installation instructions via. this blog entry.

MS Office in the browser

The most interesting thing about this announcement is that MS say the system will work in Firefox and Safari as well as IE. The Microsoft of 10 years ago would have used proprietary IE only code and used it as a way to leverage IE market share.

The Future of Advertising, Branding, Media and Communications

Video of a very interesting talk by Gerd Leonhard on the future of the media industry, and content on the Internet.

Future of web browsing from Mozilla Labs

Some interesting ideas about how web browsing might look in the future (watch the first video).