News Feed
Jobs Feed
Sections




News Archive
Gonzalo Ayuso's Blog:
PHP Template Engine Comparison. Part 2 (vs Plain PHP)
January 24, 2011 @ 11:11:07

Following in the heels of his first post looking at a few of the templating offerings available to PHP applications, Gonzalo Ayuso is back with part two - a comparison versus just "plain PHP".

In my last post I created a small (and very personal) test of different templating engines in PHP (Smarty, Haanga and Twiw). Someone posted a comment asking for the comparison between those template engines and old school phtml. OK I've done some tests. It's a bit difficult to create the template inheritance (without cloning one of the template engines and creating a new one) so I have one approximation with a simple include. It's not the same but it's similar.

He tries to recreate a similar scenario as in the three other templating tools by setting up a base template (with inline PHP), a class to populate the contents of it and a sample template with "inheritance". He stacks up the execution times and memory usage against the results from the other three with interesting results, specifically compared to Haanga.

2 comments voice your opinion now!
template engine compare benchmark plain base


blog comments powered by Disqus

Similar Posts

DevShed: A Basic Monitoring Engine in PHP

International PHP Magazine: Three Releases - Graphing, Blitz and Plugins

KillerSoft.com: Savant Gets Pearified

Rob Allen's Blog: PHP 5.3 is quicker than PHP 5.2

A Cloudy Place: PHPFog and Pagoda Box: A Look at PHP Platforms


Community Events











Don't see your event here?
Let us know!


database interview testing api framework release unittest functional composer series zendframework2 code opinion community podcast development language phpunit introduction example

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework