# Nodejs 性能测试分析及优化

# 工具

  1. apache ab压测工具 (opens new window)
  2. top (opens new window)
  3. [iostat]
  4. Nodejs自带的profile
    1. node --prof index.js
    2. node --prof-process xxx.log > xxx.txt
  5. chrome devtool
    1. node --inspect-brk index.js
      1. 打开chrome
      2. 输入chrome://inspect
      3. 切换到 javascript profile
  6. clinicjs (opens new window)