Re: Smarty perfs
| From: | Monte Ohrt | Date: | Mon, 11 Feb 2002 14:30:42 +0000 |
| Subject: | Re: Smarty perfs | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2670@lists.php.net to get a copy of this message | ||
I would venture to guess that the performance difference is coming from
the time it takes to compile the Smarty libraries, since they are
probably larger than most template engines out there. The plugin
architecture may help in situations without an accelerator (although I'd
highly recommend one, with or without Smarty.)
Out of curiosity, try the test again with php-accelerator.
http://www.php-accelerator.co.uk/
Dominique Peretti wrote:
>
> No accelerator... and Smarty 1.4.5
> On 11/02/02 15:14, "Monte Ohrt" <monte@ispi.net> wrote:
>
> > Are these with or without a php accellerator?
> >
> > LIMBOURG Arnaud wrote:
> >>
> >> Hello,
> >>
> >> After reading some comments about the templates solutions benchmark (which
> >> was talked about last week). I saw that Smarty had bad performance with
> >> caching turned on. Compared to ModeliXe for example.
> >>
> >> So, i wonder if this comes from the benchmark, from the way smarty handles
> >> caching or anything else.
> >>
> >> SCRIPT A SCRIPT B SCRIPT C SCRIPT D
> >> PHP4 100% 100% 100% 100%
> >> FastTemplates 40,20% 38,30% 36,89% 34,67%
> >> PHPLib 82,27% 80,49% 84,96% 76,50%
> >> VTemplate 66,58% 66,74% 70,71% 60,62%
> >> ModeliXe
> >> cache_delay = 0 54,36% 55,82% 59,14% 49,81%
> >> cache_delay = 5 82,84% 89,46% 96,88% 82,80%
> >> Smarty
> >> compile_check = true et caching = false 48,64% 50% 53,92% 45,38%
> >> compile_check = true et caching = true 65,38% 71,35% 85,90% 65,56%
> >> compile_check = false et caching = false 50,66% 52,16% 56,64% 47,30%
> >> compile_check = false et caching = true 66,41% 71,65% 86,44% 65,19%
> >>
> >> Can be seen page 55 at
> >> http://www.phpindex.com/download/Templates_V1.1.pdf
> >>
> >> ---
> >> 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/
> >
> > ---
> > You are currently subscribed to smarty as: dperetti@noos.fr
> > To unsubscribe send a blank email to $subst('Email.Unsub')
> > Visit Smarty's homepage at
> > http://www.phpinsider.com/php/code/Smarty/
> >
>
> ---
> 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 €'Î:
> Š;*#ÙGSŠhttp://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/