PHP vs Node.js - Is HTML Rendering slower in Node.js with Jade?

前端 未结 4 669
感动是毒
感动是毒 2021-02-06 01:23

Assuming that we have millions of requests per day. Is the HTML processing in Node.js with Jade slower or faster than PHP\'s render engine? Or doesn\'t matter because th

4条回答
  •  天命终不由人
    2021-02-06 01:43

    Jade isn't designed for speed, it's designed for elegance. If you're really concerned with speed there are other javascript rendering engines that are faster.

    Check out http://jsperf.com/dom-vs-innerhtml-based-templating/63 (note that the chrome results match closely to node.js performance)

    But that's all assuming the rendering engine is the bottleneck, and not the DB.

提交回复
热议问题