perf-report
v1.0.1
Published
performance monitor
Downloads
3
Maintainers
Readme
perf-report
性能测试工具, 以下是配置文件模板,通过指定
- page 指定待测试的页面
- repeat 指定测试的重复次数
- threshold 指定关注的性能指标,如果低于配置项中设置的阈值,则抛出错误
- format 生成报告的形式 json, html ...
module.exports = {
page: [
"http://192.168.0.100",
],
repeat: 1,
threshold:
{
"first-contentful-paint": 2,
"interactive": 2,
"speed-index": 2,
"total-blocking-time": 2,
"largest-contentful-paint": 8,
"cumulative-layout-shift": 2,
},
format: "html",
}