node的异步执行性能
- 2020 年 3 月 9 日
- 筆記
github
https://github.com/kyrylkov/promise-async-performance
topic
https://kyrylkov.com/2017/04/25/native-promises-async-functions-nodejs-8-performance/
结论
Performance of Callbacks vs Promises vs Async Functions in Node.js v8 Node.js v8.4.0 (Carbon) / V8 6.0.286.52 Async Type Time, ms Memory, MB Callbacks 376 73.55 Bluebird Promises 600 106.58 Async Functions + Bluebird promisify 636 114.67 Async Functions + util.promisify 1247 202.34 Native Promises + util.promisify 1274 195.23 Notes: both native Chrome V8 ES2015 promises and ES2017 async functions perform roughly 2 times slower than Bluebird promises using almost 2 times more memory.
其他
关于node其他性能,https://www.cnblogs.com/qcloud1001/p/10084223.html