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.