-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote (on Friday, 10 October 2008, 07:05 AM -0400): > -- monk.e.boy <[EMAIL PROTECTED]> wrote > (on Friday, 10 October 2008, 02:14 AM -0700): > > I just read: > > > > http://www.yiiframework.com/performance/ > > > > why does ZF slow down when APC is used? Are the results correct? > > I'm going to take a look at their benchmarking scripts, but even without > looking, I'm fairly certain that their methodology is flawed. I've run > benchmarks of ZF against both APC and Zend Platform, and every single > time, regardless of ZF version, running under an opcode cache shows > markedly improved performance -- not a performance degradation.
It's clear from the benchmarks "setup" they provide that they aren't giving the full story -- and also that they're not using the other frameworks (as in "not yiiframework") optimally. The ZF one includes only a single controller that looks like this: require_once 'Zend/Controller/Action.php'; class IndexController extends Zend_Controller_Action { public function indexAction() { echo 'hello world'; die(); } } and they provide no other instructions other than "appending" the Zend Framework install to your include_path (appending is a bad idea, anyways -- should be prepended so it's searched *first*). I get better results benchmarking an application with forms, database access, and ACLs then they get, so clearly there's a whole lot missing from the zip. They *do* include a contact, however, so somebody from the Zend team will contact them and see how we can provide a more optimal "hello world" setup for them. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/