Showing posts with label Zend Optimizer. Show all posts
Showing posts with label Zend Optimizer. Show all posts

2007-05-17

More speed tests

Having been pleased with the effects of the Zend Optimizer, I began to wonder what the effects would be of running the entire MediaWiki software on the commercial Zend Core engine. Here are some samples (all times in seconds):
PagePHP No optimization PHPw/Optimizer Zend Core Wikipedia
2003 invasion of Baghdad3.323.200.690.34
2003 Invasion of Iraq20.765.456.664.09
Air Force Special Operations Command1.160.630.480.21
World Geodetic System1.321.751.300.36
United States Department of Justice2.030.940.770.54
United States Air Force6.477.242.171.17
The Sunshine Boys1.930.820.620.37
Ruby on Rails1.7515.880.650.25
PowerPoint3.992.071.241.68
Lee Meredith0.850.530.370.18
Arnold Schwarzenegger1573.914.03
Philippines2555.63.51
Note that these are the times reported by PHP (as can be seen with the view source command on the resulting web page). Also note that the times vary significantly depending on what the server may be doing at the time. The times reported for my server are for uncached results, whereas the times reported for Wikipedia are presumably usually for cached results -- except for Arnold, it looks like I found him out of the cache this time around!

2007-05-11

Making it fast

Until today, I have been reasonably disappointed at the speed at which the pages in my wiki have been coming up. Wikipedia uses lots of stunts which aren't really open to me, like using Squid together with lots & lots of slaved servers. Right now, I'm just running on a two-processor (2 x 3GHz Pentium) box with 2GB of memory. SQL Server, IIS, etc. are all running locally. In this configuration, pages were taking anywhere from 2 to 10 times as long to display as the corresponding pages from Wikipedia. The fix is in. I suspected that a PHP accelerator would work, and it does -- beyond my expectations. All of a sudden, this wiki is snappy! The trick is getting a PHP accelerator that works in our configuration (Windows 2003 SE, IIS 6, PHP 5, etc.) The one that does it is Zend Optimizer. It's a free download. Thanks, Zend. If you're running any PHP on IIS, give it a try. I think you'll be impressed. Here are some example timings for my wiki, along with times from wikipedia.org:
Page titleTime before optimizerTime after optimizerWikipedia time
Philippines25 seconds5 seconds4 seconds
Arnold Schwarzenegger15 seconds7 seconds5 seconds