Re: [PHP4BETA] Zend Optimizer

From: Date: Wed, 08 Mar 2000 18:57:40 +0000
Subject: Re: [PHP4BETA] Zend Optimizer
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11765@lists.php.net to get a copy of this message
Chris, It all very much depends on the nature of your PHP scripts. If your PHP scripts are very long but pretty flat (don't do a lot of logic which often is the case with templates) you will probably not gain too much right now from the Optimizer. Don't forget that the Optimizer is a trade-off between compilation time and execution time. Scripts that contain a lot of loops and other complex logic will be faster. Also, the current version of the Optimizer contains 3 optimizations of the 20 optimizations we have ready. We didn't want to release them all together because it would be very hard to debug. We think a gradual wave of Optimizer Beta releases will make it much smoother for both the end-user and for Zend. Once we are sure that the first three optimizations work well (they have worked on www.zend.com since its rebirth a few days ago) we will continue adding the rest of the optimizations gradually. Actually, in your case, maybe the more effective optimizations are the ones still to come. However, for complex business logic, the three optimizations included now are the most significant ones and also the most tricky ones to implement. By the way, what operating system are you running on? Andi On Thu, 9 Mar 2000, Chris Chabot wrote: > Im not sure if this is the correct list for this question, but i could > find no better :) > > Ive just tried the newly released zend-optimizer engine, and i must say > im very disapointed. Instead of the promised 40%-100% improvement, ive > gotten a 20% performance -drop- ... > > I have to admin the test situation i test this on is quite insane, its a > content/application engine, that used multiple levels of nested > templates, tons of dynamicly loaded php files (aka modules), and many > many other dynamic envirioment building functions. > > But my database is not my bottleneck, that machine has 65% CPU idle time > while testing with 50 concurent connections, whilst the web server (dual > p3 600/512mb ram/raid0) is stuck on 0% idle cpu while testing. The > bottleneck is thus clearly in the speed zend can pump out data, and do > all its function&envirioment assesments. > > Using this test situation, ive compiled a -clean- apache 1.3.12 + > php-4b4pl1 (as directed by the FAQ) with this command line: > > ./configure --with-apache=../apache_1.3.12 --with-gd --with-ttf > --with-mysql --enable-inline-optimization --with-ftp --disable-debug > > Not a lot that can go wrong there right? a typicale KISS (keep it simple > sucker/stupid/silly) config ... then i enable the zend engine in the > php.ini (as directed by its FAQ), run the test, and get 8.40 viewings > per second prossed. (checked in phpinfo(), the optimizer engine is > enabled)), then i disable the engine (comment out the 2 lines), restart > apache, do the -same- test and get 10.80 viewings a second ... this is a > roughly 20% drop in performance... > > Somehow this isnt all as exciting as i was hoping for :) > > -- Chris Chabot > > >

« previous php.version4 (#11765) next »