Is the result of the AB test concurrency problem poor?

Source: Internet
Author: User
I used ci to build an environment and write code to test the mysql + memcache interface. I only use json data to return about 3-4 K of each request (not much) the test results are wonderful. 400 requests. is the result very poor? Requestspersecond: 401.43 [# sec] (mean) if I directly access... I used ci to build an environment, write code, and test it.
Mysql + memcache
The interface only returns json data. each request may look 3-4 K (not much)

Test results are wonderful 400 requests
Is the result poor?
Requests per secondd: 401.43 [#/sec] (mean)

If I directly access PHP echo, the rps is about 2000 characters.
Once you add the ci framework code to echo a string, rps will become more than 500, and the difference between 400 is not big.
I feel that PHP is better than CI concurrency testing.

Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem?

Does the CI framework need to modify the configuration? how can this problem be solved?

Reply content:

I used ci to build an environment, write code, and test it.
Mysql + memcache
The interface only returns json data. each request may look 3-4 K (not much)

Test results are wonderful 400 requests
Is the result poor?
Requests per secondd: 401.43 [#/sec] (mean)

If I directly access PHP echo, the rps is about 2000 characters.
Once you add the ci framework code to echo a string, rps will become more than 500, and the difference between 400 is not big.
I feel that PHP is better than CI concurrency testing.

Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem? Where is the problem?

Does the CI framework need to modify the configuration? how can this problem be solved?

I think the framework itself is much more complicated than the pure PHP Framework. it is complicated to introduce various types of frameworks. so it is certain to consume more resources and time. · The framework is first designed to improve development efficiency. · so we cannot put the execution efficiency first. · of course, there are some methods to optimize it. · For example, Xcache APC and so on. · then optimize the server ···

You can test baidu, sina, qq, and other Chinese sites with AB to check their RPS.

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.