简体   繁体   中英

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? eg jade, jqtpl, ejs...etc

Please advice.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM