Performance testing for web applications using Lighthouse and Chrome Launcher.
performance-testing
是一个基于lighthouse的,用于对前端项目进行性能分析的库。
- 轻量级
- 易于使用
- 支持 Vue 3
- 语言兼容性好,支持生成中文报告
/**
- @param {string} url - 要测试的目标 URL
- @param {Object} options - 配置选项
- @param {string} options.outputDir - 报告输出目录
- @param {boolean} options.openReport - 是否在测试完成后自动打开 HTML 报告 */
你可以通过 npm、npm 或 yarn 安装 performance-testing
:
npm install performance-testing
# 或者
pnpm install performance-testing
# 或者
yarn add performance-testing