dtz33344 2017-03-29 07:41
浏览 74

如何修复未充分利用CPU内核的NodeJS?

According to this page Go vs Node.js, Node.js is not showing to be taking full advantage of CPU cores when running cpu-intensive code.

If I use virtualization and simply add more Node.js instances, will I achieve the same performance as Go? I suppose there still will be overheads and one won't be able to achieve the same performance.

  • 写回答

3条回答 默认 最新

  • doufu5747 2017-03-29 07:49
    关注

    You need to install Cluster module of nodejs in order to take full advantage of CPU cores when running cpu-intensive code.

    评论

报告相同问题?