Performance of PHP Yii Framework
PHP Yii 1.1 Framework is a high-performance framework. The graph below shows how efficient Yii is when compared with other popular PHP frameworks.
In the graph, RPS stands for “request per second” which describes how many requests an application written in a framework can process per second.
The higher the number, the more efficient a framework is. As we can see that Yii outperforms all other frameworks in this comparison. The performance advantage of Yii is especially significant when the widely used APC extension is enabled.
Performance alone is not the whole story (otherwise we should all use plain HTML or PHP). With such superior performance, Yii still provides a very rich feature set which can greatly improve your development efficiency.
Why Yii is so Fast :
PHP Yii Framework is so much faster because it is using the lazy loading technique extensively. For example, it does not include a class file until the class is used for the first time; and it does not create an object until the object is accessed for the first time.
Other frameworks suffer from the performance hit because they would enable a functionality (e.g. DB connection, user session) no matter it is used or not during a request.
Leave a Reply