前提:安装node.js

1、监控工具:# npm install clinic -g 

2、压测工具:# npm i autocannon -g

3、使用监控工具启动前端服务:# clinic doctor -- node server.js

4、使用压测工具压测(并发100持续20秒):# autocannon -c 100 -d 20 https://www.cnblogs.com/wu-wu/p/10147024.html

5、查看报告

使用nodejs判断前端性能

 

相关文章:

  • 2021-07-05
  • 2021-10-09
  • 2021-07-04
  • 2022-01-26
  • 2022-12-23
  • 2021-12-19
  • 2021-10-11
猜你喜欢
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案