Zend Framework 1 vs. Zend Framework 2 Performance

Zend Framework 2 has just been released, and Zend only offers ZF1 support after 18 months. I know that they worked on new features in ZF2, and then they were going to make some basic speed improvements, since it was 5 times slower than ZF1.

I would like to know how slower ZF2 than ZF1 is from the tests or tests you did, and not for pure speculation.

The last test I found was from February 22, 2012, and it concludes that ZF2 is 4 times slower than ZF1.

Link here

+60
php zend-framework zend-framework2
Sep 07 '12 at 8:17
source share
1 answer

Frequently Asked Questions - (answers based on a personal experiment done yesterday)

What has changed in Zend Framework 2 from Zend Framework 1?

Architecture

ZF1 is based on MVC, ZF2 is based on MOVE. Huge difference. MOVE = Model Operations Views Events, MVC = Models of view controllers. More details here . Zend Framework 2 uses 100% object-oriented code and uses most of the new PHP 5.3 features, namely namespaces, late static binding, lambda functions, and closure. source

Installation size

The last ZF1 file is about 30 MB, and ZF2 is about 2.5 MB (Zipped).

Dependence

ZF1 is the main set of libraries and a very loosely coupled architecture (in relation to its competitor / player - CakePHP). ZF1 does not require a lot of “gems” (like in a ruby), but can improve with plugins. ZF2 requires you to know about composer - phar , and soon it may not match any other framework. New concept: Dependency Injection for Zend fans.

Certification

Certification is available only for ZF1, however, rumors are circulating about their negotiations for ZF2 certificates, although training materials are available online.

Legend

The classname in ZF1 was Zend_Db_Table for the class in Zend / Db / Table.php, whereas in ZF2 it is the class My \ Auth \ Adapter. Enough said.

Main

ZF1 was supported by Zend Technologies (and several others, unnamed). ZF2 has some great supporters, including Google and Microsoft. Source here

Speed

To complete "Hello World!" it took about 20 times more time. in ZF2. I do not judge here. I could be wrong. DIY.

Which one should I choose?

MVC has been around since a decade, and if you're one of those who feel sad for the new architecture, then hey! IT is “your chosen” domain, stay tuned and update yourself! Start ZF2 from here .

+96
Sep 07
source share



All Articles