Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter vs Yii
#1

[eluser]TuxLyn[/eluser]
Hey guys, I've heard many times that "Yii" framework is faster then CodeIgniter. Even on there official website they have this comparisson http://www.yiiframework.com/performance/ But then I found this which says that CodeIgniter is faster http://doophp.com/benchmark Of course I haven't done any tests my self to verify this. So I've been wondering why and how it can be faster ? Any one out here have any in depth experience in both CodeIgniter and Yii frameworks ? Any feedback on this would be appreceated. Thank you.
#2

[eluser]Jason Hamilton-Mascioli[/eluser]
Well, from the reports it seems they are close but the eco-system seems to be very different for every site. The hardware is so crucial to speed that you should be looking for code quality which both frameworks do have based on their communities I have engaged. Then, look at the libraries, functions and methods as each are different. It is possible to test the speed of every function but most don't have the time and it would be inconceivable to test every setup environment whether it be on Nginx or Apache and the linux or IIS flavors etc are just too great. Also, looking at the database's involved MongoDB or MySQL or Postgres ? They all work differently on different systems and conditions imposed on them such as RAM and CORES etc. All is good! We are in good times here.
#3

[eluser]TuxLyn[/eluser]
Thank you for your reply Jason, this is kind of what I was thinking about hardware. If you know what you're doing basicly, any framework could work for your project. Use what best works for you and gets the job done. I personally prefer CodeIgniter my self, everything that I need just works.
#4

[eluser]wh1tel1te[/eluser]
Yii is comparing against CI 1.7.
DooPHP is comparing against CI 2.0.

I think this explains it.
#5

[eluser]InsiteFX[/eluser]
And it is all pointless.
#6

[eluser]kanjimaster[/eluser]
The Yii comparison is, at best, applicable only for very basic sites not using database queries. Yii rightly observe that it's very difficult to construct fair comparisons when databases are involved.

However, database accesses are usually the first place to look when an application has performance issues, and the second is the application-specific code rather than the underlying framework (well-established frameworks are generally pretty well-optimised). SO this makes Yii's comparison, as InsiteFX says, pointless.

I wouldn't dismiss benchmarking altogether. It can be useful for highlighting thoughput issues and inefficient code. But a better comparison would maybe be on how well the frameworks support benchmarking, rather than turning benchmarking on themselves.
#7

[eluser]InsiteFX[/eluser]
If you need to see what CodeIgniter is doing then look into the Profiler.




Theme © iAndrew 2016 - Forum software by © MyBB