Symfony 2 faster then Yii!!!

As far as I can see, Symfony 2 is using Doctrine for DB.

Don´t get me wrong, I like Doctrine and use it very often,

but it is HUGE. Many, many classes and it reduces the performance

a lot.

So if u have a prject with db, I would definitly prefere Yii with

its own db connecter.

But this is just my opinion.

P.S. I would like to see a "real project" benchmark with db, logging, extensions, acl

and so on. A community system would be a perfect example.

I programmed one with Zend, ist was awfull :-(.

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. :D

What is the framework?

It is the set of interrelated objects.

A Framework just enable the process of development fast. it will make you to not write routine code.

Yii seems to be bit easy to use. I have some experience with frameworks but I really find Yii best.

The choice of Framework depends on project requirements.

Either you use, most of the working will be done by you.

I know, but I just needed to say what I believe ;-).

I love yii, but i am looking for a framework with more "best practices" and "design patterns".

Then Symfony 2 is a good candidate.

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 :D 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” ;)

Symfony2 if you want to stick with PHP and http://en.wikipedia.org/wiki/Spring_Framework (java) as a “very enterprise framework” :)

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

Exactly: development process is fastest in yii!

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.

Hi,

About the benchmark that symfony2 people did we have this review:

h t t p:// paul-m-jones.com /archives /1222

I really tried to like Symfony, but I was put off already on the first page of its guide…

It just feels too elaborate, or clunky.

It’s great that there’s choice, though.

I am not married to Yii, but haven’t really had any need to look elsewhere.

Came from CakePHP because it was slower and Yii was faster.

The only other option I’d consider looking into would be FuelPHP - or is it just Fuel now? - it’s leaner than Yii.

The thing which are holding me back is that it seems to be too tied to the Unix platform. (Lack of command line support for Win32).

Yii and Symfony2 are both great framework!!! Symfony2 is very big. Yii is very fast (in develop). Are both testable. Are both for agile process.

There are a lot of framework. I am not afraid to be polyglot! We can use both!!!

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 :rolleyes: 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”.

Actually, the fastest framework in the world is this one.

  • It works on all versions of PHP (yes, even those not released yet)

  • Its FAST. Really fast. The fastest against anything I’ve ever benchmarked it against and is WAY faster then CodeIgniter.

  • Tiny footprint. The whole framework is only a few KB big.

  • Compatible with every database that PHP supports.

  • Pretty good documentation (not fully developed yet).

  • Very small learning curve. If you know PHP, you’ll pick it up right away.

Btw, for client-side scripting you can use VanillaJS framework.

Happy coding.

^_^

:lol: