性能优化之PHP优化

WBOY
Release: 2016-06-23 13:28:26
Original
738 people have browsed it

1.压力测试ab的使用学习
使用的软件和使用的命令,这是linux下的命令

request per second 要竟可能的大 实现大并发
time per second 的时间要竟可能小,小表示可以更快速进行反馈

2.php的语言级优化
php语言要先转化成为c语言,然后c再转化为汇编,所以尽量多的使用php自带的语言对性能有很大的提升。

1)代码冗余较多,可读性不佳,性能低
为什么性能低:php需要解释为底层语言,底层语言编译成汇编语言,每次都是处理一遍,开销大。
推荐多使用php内置的常亮,内置的变量,内置的函数。

版权声明:本文为博主原创文章,未经博主允许不得转载。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!