PHP Optimization for performance optimization

Source: Internet
Author: User
1. Use of stress test AB learning
Use the software and commands that are used by Linux, this is the command

Request per second to be possible large implementations of large concurrency
Time per second is likely to be small, small means faster feedback

Language-level optimization for 2.php
The PHP language must first be converted into C, and then c into the assembly, so as much as possible to use PHP's own language to improve performance greatly.

1) More code redundancy, poor readability, low performance
Why performance is low: PHP needs to be interpreted as the underlying language, the underlying language compiled into assembly languages, each time is processed again, overhead.
It is recommended to use PHP built-in solid, built-in variables, built-in functions.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

  • 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.