In the php-fpm mode, the optimization problem of eaccelerator is apache + fastcgi + php-fpm & lt ;? Php & nbsp; echodate (& quot; Ymd-His & quot ;). & quot; n & quot; & nbsp; for ($ i0; $ I & lt; 1000; $ I ++) {& nbsp; $ iduniqid (); optimization of eaccelerator in php-fpm mode
Apache + fastcgi + php-fpm
Echo date ("Ymd-His"). "\ n ";
For ($ I = 0; I I <1000; $ I ++ ){
$ Id = uniqid ();
}
Echo date ("Ymd-His". "\ n ");
?>
It has little effect on script optimization and has no effect.
Is this optimization effective under high concurrency?
------ Solution --------------------
Php-fpm only optimizes inter-process scheduling and does not improve program running.
------ Solution --------------------
Eaccelerator only optimizes some static operations for pre-Compilation. it should be similar to uniqid.
------ Solution --------------------
In addition, it is recommended that the cache file of the eaccelerator be stored in/dev/shm. Otherwise, the response speed may be reduced.
In addition, it is true that only large concurrency can reflect the optimization effect. if you only access it once, you can also optimize it ....