Re: [SMARTY] upcoming benchmarks
| From: | Monte Ohrt | Date: | Wed, 05 Jun 2002 21:35:48 +0000 |
| Subject: | Re: [SMARTY] upcoming benchmarks | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4636@lists.php.net to get a copy of this message | ||
I've finished the very first test. I assign and parse 50 template variables. I ran each engine 100 times in a row. I tried my best to figure out how to setup each one the most efficiently (assigning vars, etc.) I'll be uploading all the sources so you can let me know if my routines need adjustment.
I have no idea why UltraTemplate is so slow at this one. As for ModeliXe, it has a built-in caching system that I don't know how to disable, so I left it on and gave it a directory to dump cache files to. Smarty still outpaces it though (no caching)
Here is a snapshot of the test run. Each reload was basically identical, so this is pretty accurate.
http://www.phpinsider.com/bm.gif
This is running under php-accelerator, although I don't think it has much of a bearing because I load all the PHP class files in one lump before going through the tests.
Next will be a block loop test. This will take a bit longer to figure out in each engine. :-)
Monte
Bertrand DUNOGIER wrote:
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.PB> Except of course that it may beat Smarty :-) And then ? Most template engines are probably faster than smarty, since they have less features. Smarty is a particular template solution, being the only one to compile templates, and being so customizable. And even if a solution might be better, it is good to include it in benchmarks since it shows where developpement might be oriented to improve the product. And never forget that smarty is not only a html output class... in my opinion, it also allows a better code, much closer to prof. real applications in "coding standards" terms. Oh, and a benchmark is not only a way to say "this is the fastest solution, forget about the others" :) BertrandYou could add ModeliXe, seems like it is a very serious engine (http://modelixe.phpedit.com)