I am considering Smarty as my web app templating solution, and I am now concerned with its performance against plain PHP.
The Smarty site says it should be the same, however, I was not able to find anyone doing real benchmarking to prove the statement right or wrong.
Did anyone do some benchmarking of Smarty vs plain PHP? Or maybe come across some resources on such tests?
Thanks
Because in the end, Smarty compiles and caches the templates files to native PHP-code, there is indeed no theoretical performance difference. Of course there will always be some performance loss due to the chunk of Smarty-code that needs to be interpreted every time.
You might also want to take at a new template library that is similar to Smarty called Dwoo
Just found this very simple benchmark - propably not very significant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With