Skip to main content

Benchmarking HAML vs JADE vs HTML in PHP?


I'm interested in the performance of templating languages in PHP. I've been watching node.js tutorials and am really impressed by the use of JADE (http://jade-lang.com).



I see that JADE can be used in PHP https://github.com/everzet/jade.php and am wonderring about how it works in terms of performance.



I gather that when running for Node or Ruby the HAML or JADE is compiled when the server is started, but since (I gather) PHP loads at request-time there may be performance implications when using a templating language in PHP (then again, maybe the templates are compiled and stored in the cache).



Has anyone seen or done benchmarks of how PHP performs when using HAML, JADE, (other template languages that I don't know about) versus writing the full HTML ? What other considerations should I be aware of? (Assuming an MVC style framework)


Source: Tips4allCCNA FINAL EXAM

Comments

  1. I just implemented Jade.php for one of my Zend Framework projects.

    They do cache the parsed jade files as php files, and just include them at runtime. That's what the Zend Framework does with the phtml files, i.e.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?