By phpimpact
via avnetlabs.com
Published: Jul 02 2008 / 02:40
When it comes to developing and scaling Web applications, performance is everything. Ekerete Akpan, from AVNet Labs, conducted a series of benchmarks to compare the performance of four popular PHP frameworks.
Tweet
SaveShareSend
Tags: frameworks, open source, php, research



Comments
antych replied ago:
IMO the only relevant test is APC with no DB calls, good effort anyway
phpimpact replied ago:
Then you wouldn't be testing the framework, only a component.
antych replied ago:
You would test dispatching process which adds overhead, this is the main culprit. Models and database access can be implemented in many ways, especially with ZF which doesn't force you to do anything. For example, testing Zend_Db_Table which is optional and not even used by many people has no place in such comparison. Also, there are dozens of components that make up a framework, you claim to be "testing the framework" by touching 1% of the code? Silly.
phpimpact replied ago:
I'm confused, you suggested to test less code by excluding components. All the benchmarks are showing the same results:
http://static.alrond.com/results_2test.gif
antych replied ago:
I don't suggest to exclude components, zend controller and view are components, so it wouldn't make much sense. I suggest you stick with dispatching process which is most relevant and common for every framework. I also didn't expect results to change.
The bottom line is that those framework are too complex to pick one component like Zend_Db and throw it into the comparison. All you can do is check simple scenario, what it takes to dispatch and render a view. Still there are many variables you didn't account for, like plugins enabled by default. One framework can do more work out of the box than another one, not necessarily being slower overall.
Jeremy Ward replied ago:
I couldn't agree more. Francois Zaninotto wrote an excellent post about what you've just said:
http://www.symfony-project.org/blog/2007/06/11/is-symfony-too-slow-for-real-world-usage
tobyhede replied ago:
Performance is orthogonal to scale!
Scale is an architectural concern.
phpimpact replied ago:
If a system doesn't handle growing amounts of traffic in a graceful manner, then it will fail to scale.
Voters For This Link (16)
Voters Against This Link (1)