Zend Optimizer Comparison	10/26/2001

Author: Eric Braswell

Versions: Alpine build 1.100, PHP version 4.05-C2_memusage,
ZendOptimizerv1.1.0 for PHP 4.05/4.06

Methodology: Pages are my standard profiling pages found in palette/profiling. I conduct timing and memory tests separately, restarting Apache between each set of tests.  I use NS 4.77 PPC and do a "super reload" for each page.

Summary:
This test was performed to get a feel for how much of an improvement, if any, would be realized by using the Zend Optimizer (see http://www.zend.com/store/products/zend-optimizer.php). The optimizer claims to "speed the runtime performance" of PHP scripts through multi-pass code optimizations. 
I had expected to see some performance gains using the Optimizer, but it wasn't sure because I have read that the Optimizer can have a negative impact when the code base is particularly large. That appears to be the case with UIFC. I benchmarked using the PEAR timer class and PHP memusage hack on 3 different pages - a basic form, a scroll list with 20 items, and a simple include and instantiate of HtmlComponentFactory.
This wasn't meant to be a comprehensive or completely accurate test, and so it  may be that we would derive some benefit from using the Optimizer in some situations.


	        	Off	        On	        Diff (off-on)
basic_page.php	0.45947	0.48386	
		        0.43262	0.48272	
                        0.45934	0.44922	
                        0.43717	0.45324	
                        0.43577	0.45379	
                        0.43205	0.45414	
Average	        0.44274	0.46283	-0.02009
				
htmlcomponentfactory.php	(include, instantiate)	
                        0.05021	0.05486	
	                0.05037	0.05466	
                        0.05037	0.05576	
                        0.05066	0.05429	
                        0.05028	0.05648	
Average            0.05040	0.05521	-0.00483
				
                        324328	322224	
                        307072	322320	
                        307072	322224	
                        307072	322344	
                        307072	322224	
Average           310523	322267	-11744
				
scroll_list.php	0.95226	0.98005	
                        0.96329	1.36115	
                        0.94551	0.97546	
                        0.95086	1.21770	
                        0.95096	0.98141	
Average           0.95258	1.10315	-0.15058
                
                
                        1692400	1801048	
                        1714464	1723888	
                        1657704	1726912	
                        1657728	1726912	
                        1657704	1723888	
Average            1676000	1740530	-64530