Yii Framework Forum: Benchmarking/performance - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Benchmarking/performance Rate Topic: -----

#1 User is offline   MetaYii 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 393
  • Joined: 07-October 08
  • Location:The Matrix

Posted 07 October 2008 - 01:17 PM

I have a question. How does Yii perform compared to Prado 3, Seagull or Zend Framework, for instance? Do you have some profiling or benchmark?

I know this kind of benchmarks are most of the time hated because there are several aspects which affect the performance, but I'd like to have some basis for deciding to switch to Yii for new developments.

Thanks :-)
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,900
  • Joined: 04-October 08
  • Location:DC, USA

Posted 07 October 2008 - 01:50 PM

Yes, performance is affected by many factors. The one shows on this project website mainly reveals the minimal overhead caused by a framework. This time is crucial because there is no way to avoid it unless the framework is optimized or some server caching technique is used.

The comparison already shows Yii vs. Prado 3. I just profiled Zend framework and the result is very poor: 22 RPS without APC and 14 RPS with APC (this is very interesting, it seems Zend doesn't go well with APC. I repeated the test several times and got similar results.)

I didn't compare Yii with Seagull mainly because Seagull doesn't come with a suitable demo and there are a lot of STRICT PHP notices.
0

#3 User is offline   eirikhm 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 06-October 08

Posted 08 October 2008 - 01:09 AM

Quote

I have a question. How does Yii perform compared to Prado 3, Seagull or Zend Framework, for instance? Do you have some profiling or benchmark?



I know this kind of benchmarks are most of the time hated because there are several aspects which affect the performance, but I'd like to have some basis for deciding to switch to Yii for new developments.



Thanks :-)



For some quick numbers, see http://www.yiiframew...om/performance/ :)
0

#4 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 08 October 2008 - 02:28 AM

From the diagram you see that without APC "standard" Yii is faster than yiilite. How comes that?
0

#5 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,900
  • Joined: 04-October 08
  • Location:DC, USA

Posted 08 October 2008 - 05:44 AM

This is because yiilite.php is a file with 163KB. Parsing this big file takes significant time. When APC is enabled, this time is saved.
0

#6 User is offline   rabol 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 50
  • Joined: 08-October 08

Posted 08 October 2008 - 12:18 PM

Question: Why is codeigniter v 1.5.4 used while 1.6.3 is the 'current' version ?

0

#7 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,900
  • Joined: 04-October 08
  • Location:DC, USA

Posted 08 October 2008 - 02:35 PM

I just updated the results by replacing CI with 1.6.3 version. Thanks for suggestion.
0

#8 User is offline   iflyhigh 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 08-October 08

Posted 08 October 2008 - 05:57 PM

Where is the source for the comparisons?
0

#9 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,900
  • Joined: 04-October 08
  • Location:DC, USA

Posted 08 October 2008 - 08:55 PM

Per your request, I just compiled together the testing scripts. Please download it at http://code.google.com/p/phpmark/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users