title: What steps can be taken to improve jade template rendering performance in express using nodejs
body: <p>Background</p>
  
  <p>jade syntax is awesome but i wanted to see how it was affecting performance.</p>
  
  <p>So i created a single page app and used apache bench to compare its throughput using jade to render a page vs using an in memory string. There were no variables so this was a purely academic comparison.</p>
  
  <p>The in memory string made the entire app more than twice as fast locally, which seems a lot considering jade in production mode should be rendering from an in memory cache.</p>
  
  <p>I'm using node 0.8 and the version 2.5.11 of express in production mode with the view cache option explicitly set to <code>true</code>.</p>
  
  <p>apache bench results:
  <a href="https://dl.dropbox.com/u/3737990/jade/jade.png">https://dl.dropbox.com/u/3737990/jade/jade.png</a>
  <a href="https://dl.dropbox.com/u/3737990/jade/memory.png">https://dl.dropbox.com/u/3737990/jade/memory.png</a></p>