在Ubuntu上优化Node.js代码可从以下方面入手:
fs.promises
async/await
cluster
--max-old-space-size
--harmony
node --prof
--prof-process
clinic.js
PM2