Performance Optimization-PHP optimization

Source: Internet
Author: User
Performance Optimization-PHP optimization 1. use of stress testing AB
The software and command used. this is the command in linux.

The request per second must be able to achieve high concurrency.
The time per second may be small, which means that feedback can be faster.

2. php language-level optimization
The php language must first be converted to the c language, and then the c language must be converted to the assembly language. Therefore, using as many php languages as possible greatly improves the performance.

1) code redundancy, poor readability, and low performance
Why is the performance low: php needs to be interpreted as the underlying language. the underlying language is compiled into an assembly language, which is processed once at a time with high overhead.
We recommend that you use php built-in always bright, built-in variables, and built-in functions.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.