sitespeedio前端性能测试工具介绍

好久没有写博客了,今天给你们介绍一款比较好用的前端性能测试工具。前端

sitespeedio简介:

sitespeed.io是Jonathan Lee发布的一款可监视和衡量网站前端性能的开源工具。java

1.开源git

2.支持事务模拟github

3.自动性能分析,造成可视化报告chrome

4.提供的docker镜像已搭建完成监控系统,知足线上环境监控docker

安装:

经过docker安装是比较简单快捷的。bootstrap

Windows执行如下命令:前端性能

docker pull sitespeedio/sitespeed.io

  

最简单的执行测试命令:工具

docker run -v D:\test:/sitespeed.io sitespeedio/sitespeed.io -b chrome https://www.baidu.com

将生成的测试报告输出到本地目录性能

Grafana和Graphite使用

官方提供了安装的yml文件,经过https://github.com/sitespeedio/sitespeed.io/blob/main/docker/docker-compose.yml下载后,进入到路径下执行

docker-compose up -d

 验证是否成功使用:

docker run sitespeedio/sitespeed.io https://www.baidu.com --graphite.host={graphite容器地址}

最后经过grafana添加graphite数据源,添加仪表盘进行查看运行结果,官方提供了大量模板能够自行下载使用https://github.com/sitespeedio/grafana-bootstrap-docker/tree/main/dashboards/graphite

Grafana和Influxdb使用

docker run sitespeedio/sitespeed.io https://wwwbaidu.com --influxdb.host={influxdb容器地址}

influxdb官方只提供了一个模板。

 

 下面给你们提供一张执行玩后,自动生成的一张测试报告

 

 其余的一些更多的用法官方文档上有很明细的解释:

https://www.sitespeed.io/documentation/sitespeed.io/configuration/

相关文章
相关标签/搜索