Performance test comparison of doitphp,thinkphp,yii,ci,doophp and other frames

Source: Internet
Author: User
Tags codeigniter
Comparison of performance tests on doitphp,thinkphp,yii,ci,doophp and other frameworks

Test environment:

?

Hardware environment:

THINKPAD T61 Notebook

Cpu:intel CORE (TM2) DUO T770

Memory: 2G

HDD: 320G 7200

Graphics: Integrated Graphics

?

Software Environment:

Operating system: Win 2003 SP2

PHP Environment: apache/2.2.17 (WIN32) php/5.3.6

Database: MySQL 5.5.10

?

?

?

Test tool: Apache Bench (ie: AB)

Test content: ab-c 10-n 1000 Test URL

?

?

?

Let these frameworks read 1000 of the data from the same database, the same data table, and display it in the view, with view rendering (i.e., layout and widget apps). Ensure that the final output page content is the same (HTML exactly).

?

?

?

Test results:

1. Native PHP:

Note: The test data is 500 times the test data, in the test 1000, due to the system error, it was tested 500 times.
Time taken: 2.032 seconds (1.016*2)
Average requests per second: 492.31 times
Average Time spent per request: 20.313 milliseconds

2, doitphp:
Beta version: 1.0

Time taken: 5.75 seconds
Average requests per second: 173.91 times
Average Time spent per request: 57.500 milliseconds
(35.3% of native PHP running efficiency)

3, thinkphp
Beta version: 2.1

Time taken: 11.797 seconds
Average requests per second: 84.77 times
Average Time spent per request: 117.969 milliseconds
(17.2% of native PHP running efficiency)

4, CodeIgniter
Beta version: 2.0.2

Time taken: 15.266 seconds
Average requests per second: 65.51 times
Average Time spent per request: 152.656 milliseconds
(13.3% of native PHP running efficiency)

5. Yii Framework
Beta version: 1.1.8

Time taken: 26.328 seconds
Average requests per second: 37.98 times
Average Time spent per request: 263.281 milliseconds
(7.7% of native PHP running efficiency)

6, doophp
Beta version: 1.4.1

Time taken: 14.484 seconds
Average requests per second: 69.04 times
Average Time spent per request: 144.844 milliseconds
(14% of native PHP running efficiency)

7, qeephp
Beta version: 2.1.2560

Time taken: 24.609 seconds
Average requests per second: 40.63 times
Average Time spent per request: 246.094 milliseconds
(8.3% of native PHP running efficiency)

Conclusion:
In the comprehensive application, the operating efficiency of doitphp is as follows:
Native PHP 35.3%,
It's 2.1 times times thinkphp 2.1.
It's 2.6 times times CodeIgniter 2.0.2.
It's 2.5 times times doophp 1.4.1.
It's 4.5 times times the size of Yii 1.1.8.
is 4.3 times times the qeephp 2.1.2560.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.