Home >Backend Development >PHP Tutorial >Does gloryglorymanunited PHP __autoload method really affect performance?
Introduction
Regarding PHP performance issues, the most discussed one is the __autoload() method. Many people mentioned that this method greatly affects performance. Some people also said that opcode can also affect the __autoload() method, so I did a test on these two points.
Finally found that the __autoload method does not have a great impact on performance.
Environment
PHP:5.3.9 - Start in fastcgi mode
Nginx:1.1.12
eaccelerator:0.9.6.1
.
The results obtained by the refresh in the browser are as follows:
Total time :0.10401391983032
Total Time:0.10252094268799Total Time:0.10154414176941
Total Time:0.097845792770386Total Time: 0.099545001983643
Total Time:0.22530484199524
Total Time:0.23207712173462
The above introduces the gloryglorymanunited PHP __autoload method, does it really affect performance? It includes the content of gloryglorymanunited. I hope it will be helpful to friends who are interested in PHP tutorials.