Re: [SMARTY] yet another benchmark

From: Date: Tue, 11 Jun 2002 13:22:49 +0000
Subject: Re: [SMARTY] yet another benchmark
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4771@lists.php.net to get a copy of this message
Ivo Jansch wrote:
Hi Monte, Monte Ohrt wrote:
This is a new benchmark, hopfully the most fair way to do it. I put it here temporarily, please take a look and let's hear your feedback. If it looks OK, we'll probably replace the current benchmark page with it.
I miss an important test in the first benchmark. You assign the variable 50 times, but you render the template only once. I think the rendering is much slower than the assigns, and I think it is very important to test how fast the template is rendered, not only how fast variables get assigned. Since fast rendering (due to compilation) is one of Smarty's key features, I think you should test this as well. So a loop where you fetch a template 50 times should be a part of the benchmark.
You would rarely fetch a template 50 times in any real application, normally you fetch only once. I suppose it could be a legitimate benchmark though.
Also, it would be nice if you could not only show the source code (the 's' link), but also the template itself (a 't' link perhaps). This could also give a nice comparison of template syntax.
I was going to do that, but some of the engines require more than one template to handle a loop. Just show index.tpl, or supply more than one link, or? Monte

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