performancememorynode.jsrendering-engine

Which rendering/template engine should I use for node.js?


Right now, I'm using jqtpl in my node's express. However, my coworker said that it took a lot of memory under load testing.

So:

  1. Is it a problem with express or the rendering engine? is there any configuration (like view cache) I should do to reduce memory usage?

  2. What is the characteristic of different rendering engine? e.g. jade, jqtpl, ejs...etc

Please advice.


Solution

  • Run the benchmarks using NODE_ENV=production, by using the development environment you have to load and compile the template each time.