Re: Smarty Benchmarks

From: Date: Fri, 04 Jan 2002 14:39:15 +0000
Subject: Re: Smarty Benchmarks
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2495@lists.php.net to get a copy of this message
I don't know where they got that 6 times slower benchmark from... it would be hard to come up with an accurate benchmark number since there are so many things that could affect speed. But, there is a huge difference between using Smarty with and without a PHP caching solution such as Zend Cache or APC. _without_ one of these, there is an overhead of the PHP engine interpreting the template class files, along with interpreting the template files generated by Smarty. Since Smarty is so feature rich, it is probably one of the larger template classes out there (next release - plugins - should help cut down on the amount of interpreted code). However, _with_ something like APC, it would be hard for me to believe that Smarty could be any slower than a non-templated solution, especially if you are using the caching features of the template engine. One of the nice side effects with Smarty is that APC caches the templates since they are converted to PHP code. We are even throwing around the idea of making the Smarty cache files themselves PHP code so they can be cached by APC too. Peter Bowyer wrote: > > Hi, > > Does anyone have a decent Smarty benchmark? I was trying to convince the > Phorum people to use Smarty, and had read somewhere that it was 6 times > slower than hand-written PHP code, but I'd just like to correct that if > it's wrong. You can find the thread under > > <http://phorum.org/support/read.php?f=4&i=878&t=878> - > enable flat mode to > find it more easily. > > Thanks, > Peter. > > --oOo-- > Narrow Gauge on the web - photos, directory and forums! > http://www.narrow-gauge.co.uk > --oOo-- > Peter's web page - Scottish narrow gauge in 009 > http://members.aol.com/reywob/ > --oOo-- > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#2495) next »