Comparison of performance tests on frameworks such as doitphp, thinkphp, yii, ci, and doophp

Source: Internet
Author: User
Test and compare the performance of doitphp, thinkphp, yii, ci, doophp and other frameworks :? Hardware environment: THINKPADT61 notebook CPU: INTELCORE (TM2) DUOT770 Memory: 2 GB hard disk: 320G7200 graphics card: integrated graphics card? Software Environment: performance test and comparison of doitphp, thinkphp, yii, ci, doophp and other frameworks

Test environment:

?

Hardware environment:

THINKPAD T61 notebook

CPU: intel core (TM2) DUO T770

Memory: 2 GB

Hard disk: 320 GB 7200

Video card: integrated video card

?

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 connector (AB)

Test Content: AB-c 10-n 1000 test URL

?

?

?

Let these frameworks read 1000 pieces of data from the same database and data table, and display them in the view. The View is rendered using the view (layout and widget application ). Ensure that the content of the final output page is the same (the HTML is the same ).

?

?

?

Test results:

1. Native php:

Note: the test data is 500 tests. during The 1000 test, 500 tests were performed due to system errors.
Time used: 2.032 seconds (1.016*2)
Average requests per second: 492.31
Average time used for each request: 20.313 MS

2. doitphp:
Test version: 1.0

Time used: 5.750 seconds
Average requests per second: 173.91
Average time used for each request: 57.500 MS
(35.3% of the running efficiency of native PHP)

3. thinkphp
Test version: 2.1

Time used: 11.797 seconds
Average requests per second: 84.77
Average time used for each request: 117.969 MS
(17.2% of the running efficiency of native PHP)

4. codeigniter
Test version: 2.0.2

Time used: 15.266 seconds
Average requests per second: 65.51
Average time used for each request: 152.656 MS
(13.3% of the running efficiency of native PHP)

5. yii framework
Test version: 1.1.8

Time used: 26.328 seconds
Average requests per second: 37.98
Average time used for each request: 263.281 MS
(7.7% of the running efficiency of native PHP)

6. doophp
Test version: 1.4.1

Time used: 14.484 seconds
Average requests per second: 69.04
Average time used for each request: 144.844 MS
(14.0% of the running efficiency of native PHP)

7. qeephp
Test version: 2.1.2560

Time used: 24.609 seconds
Average requests per second: 40.63
Average time used for each request: 246.094 MS
(8.3% of the running efficiency of native PHP)

Conclusion:
For comprehensive applications, the running efficiency of DoitPHP is as follows:
35.3% of native PHP,
2.1 times of thinkphp 2.1
2.6 times that of codeigniter 2.0.2
2.5 times that of doophp 1.4.1
4.5 times that of yii 1.1.8
It is 4.3 times that of 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.