I’m not sure if you notice buddy, but you just replied to a 6-month old thread.
We have now 1.1.6, does the statistic remain the same? any improvements?
And yes I’m interested too with a “REAL PROJECT” benchmark. But I have a feeling that I’m too attached to Yii that it’s gonna have my vote no matter what.
That is not very optimistic that Yii team recommend Symfony 2 as a framework with “best practices” and “design patterns”… maybe you should also go this direction? if you let people to participate in developing parts of Yii and include their code wisely I am pretty sure Yii can be also “enterprise” framework with “best practices and design patterns”.
Either you love Yii, or not Symfony is good, but Yii is better. Did you expect this answer? For me it is the truth. Yesterday I’ve included Symfony’s YAML parser in my project and it works just fine, because Symfony is so nice “reusable set of standalone, decoupled, and cohesive PHP components that solve common web development problems”
As for Symfony2 is faster then Yii, then from my experience of using them both, I would say that it’s a very moot point. All this synthetic tests are rather PR than the research. I agree that sf2 can be faster then yii under some circumstances, but this “50% faster than Yii” is worth nothing, it only means that on this certain synthetic test sf2 is faster. Let’s make performance testing with doctrine and some other common bundles/features of sf2 and then compare it to the same yii application
Both frameworks are great but for most of my projects (not all) I still prefer Yii because it’s simple, feature rich and development process is really fast with yii. And for long-term and big projects with several developers involved I think sf2 is better suited
I meant that Symfony2 is the one full of “best practices” and “design patterns” (personally I think it’s a bit overdesigned). Yii have these too but we’re not marketing Yii like “enterprise” type of framework.
I have been using yii since the first release. I have done(and still doing) a very complex and big software for a telekom in our country its has a billing/crm/provisioning instances which serve about 200k customers . The app almost doesnt have any GUI, just SOAP, REST and HTTP services. I extensevely use behaviours and events, the app works great. I also have a core of base classes which are just extended by new behaviors which ONLY attach event handlers… Anyway the idea is that you can make enterprise apps with Yii. I only read the starting giude of SF2 and it really looked overdesigned and too complicated. I dont understand why everything is in YAML and need to be double parsed ?! I like the annotations though, I think they should become native in PHP one day.
And for those talking about big , complex enterprise solutions i think yii is good enough, and if yii is not good enough then PHP is not and I would choose Java.
Fabien Potencier’s Symfony 2 speed claims have proven to be completely unfounded: according to Paul M. Jones (who specializes on framework benchmarks, he is obssessed with them) in his PHPBenelux 2011 presentation (http://paul-m-jones.com/archives/1727), while Symfony 2 Alpha version was almost as fast as Yii (it seems Potencier tweaked the Alpha version just to make the speed claim) the released (PR4) Symfony 2 is just as slow as S1 and therefore much slower than Yii.
See the attached chart below, only CI and Kohana can claim to be faster than Yii (which is certainly much faster than Symfony 2) and Cake is still dog slow.
That’s been very informative, thanks a ton. For those who struggle to understand the last graph and do not wish to read through the entire presentation: It’s the speed of the shown frameworks in comparison to a bare PHP script echoing “Hello World”.