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/

相關文章
相關標籤/搜索