Documentation

內容目录

上一个主题

< 我们的动机(Our motivation)

下一个主题

Hello World Benchmark >

本页

框架基准测试(Framework Benchmarks)

In the past, performance was not considered one of the top priorities when developing web applications. Reasonable hardware was able to compensate for that. However when Google decided to take site speed into account in the search rankings, performance became one of the top priorities alongside functionality. This is yet another way in which improving web performance will have a positive impact on a website.

The benchmarks below, show how efficient Phalcon is when compared with other traditional PHP frameworks. These benchmarks are updated as stable versions are released from any of the frameworks mentioned or Phalcon itself.

We encourage programmers to clone the test suite that we are using for our benchmarks. If you have any additional optimizations or comments please write us. Check out source at Github

怎样的测试环境?(What was the test environment?)

APC intermediate code cache was enabled for all frameworks. Any Apache mod-rewrite feature was disabled when possible to avoid potentially additional overheads.

The testing hardware environment is as follows:

  • Operating System: Mac OS X Lion 10.7.4
  • Web Server: Apache httpd 2.2.22
  • PHP: 5.3.15
  • CPU: 2.04 Ghz Intel Core i5
  • Main Memory: 4GB 1333 MHz DDR3
  • Hard Drive: 500GB SATA Disk

PHP version and info:

../../_images/bench-4.png

APC settings:

../../_images/bench-5.png

基准测试列表(List of Benchmarks)

变更日志(ChangeLog)

1.0 新版功能: Update Mar-20-2012: Benchmarks redone changing the apc.stat setting to Off. More Info

在 1.1 版更改: Update May-13-2012: Benchmarks redone PHP plain templating engine instead of Twig for Symfony. Configuration settings for Yii were also changed as recommended.

在 1.2 版更改: Update May-20-2012: Fuel framework was added to benchmarks.

在 1.3 版更改: Update Jun-4-2012: Cake framework was added to benchmarks. It is not however present in the graphics, since it takes 30 seconds to run only 10 of 1000.

在 1.4 版更改: Update Ago-27-2012: PHP updated to 5.3.15, APC updated to 3.1.11, Yii updated to 1.1.12, Phalcon updated to 0.5.0, Added Laravel, OS updated to Mac OS X Lion. Hardware upgraded.