What steps can be taken to improve jade template rendering performance in express using nodejs

前端 未结 3 1583
我寻月下人不归
我寻月下人不归 2021-02-13 05:27

Background

jade syntax is awesome but i wanted to see how it was affecting performance.

So i created a single page app and used apache bench to compare its throu

3条回答
  •  深忆病人
    2021-02-13 05:59

    An in-memory string is the absolute fastest thing you can do, so comparing against it is not very meaningful. A template is never going to be as fast as string concat. Setting to production mode is the most important thing you can do performance wise.

提交回复
热议问题