performance-testing

1.0.2 • Public • Published

介绍

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

/performance-testing/

    Package Sidebar

    Install

    npm i performance-testing

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.72 kB

    Total Files

    5

    Last publish

    Collaborators

    • tengjd