简体   繁体   English

合并合并请求的速度测试自动化

[英]Automating Speed Tests on Merging Pull Requests

I am trying to track the page speed of certain urls of my project on each merging of the pull requests in Github and output the results of report in HTML format or JSON file. 我正在尝试在Github中每次合并拉取请求时跟踪项目的某些URL的页面速度,并以HTML格式或JSON文件输出报告的结果。 On the CI side, I am going to use Jenkins. 在CI方面,我将使用Jenkins。 I have no prior knowledge on performance testing. 我对性能测试没有任何先验知识。 I want to know about the best approach to automate the speed test, integrate it with Jenkins and output the result. 我想知道自动化速度测试,将其与Jenkins集成并输出结果的最佳方法。

On researching over the internet, I noted few possibilities which could be done to achieve this goal. 在通过互联网进行研究时,我注意到为实现该目标几乎无法做的事情。

  1. Installing "Page Speed Insights (psi) node package", creating the script that uses the psi for fetching the speed of certain pages, generating the test reports for use with Jenkins. 安装“ Page Speed Insights(psi)节点程序包”,创建使用psi来获取某些页面速度的脚本,并生成供Jenkins使用的测试报告。 (Referred to this link by Oxagile) (由Oxagile引用链接)
  2. Performance testing using Jmeter and integrating with Jenkins. 使用Jmeter并与Jenkins集成进行性能测试。
  3. Performance analysis using LightHouse. 使用LightHouse进行性能分析。 (Referred to this link by Timo Stollenwerk) (由Timo Stollenwerk引用链接)

Choosing the right approach is very important. 选择正确的方法非常重要。 Therefore, I would be very grateful if anyone can suggest me different approaches and thus the right one to use(with examples if possible)in my case to achieve this goal. 因此,如果有人可以向我建议不同的方法,从而在我的情况下使用正确的方法(如果可能,还提供示例)来实现这一目标,我将不胜感激。

Thank you in advance. 先感谢您。

After quite a bit of research, I found out that sitespeed.io is the best solution for achieving this goal. 经过大量研究,我发现sitespeed.io是实现此目标的最佳解决方案。 It is a complete web performance tool that helps us to measure the performance of the website. 它是一个完整的Web性能工具,可帮助我们评估网站的性能。 It is best for running in the continuous integration to find web performance regressions on commits and monitoring them in production and alerting on regressions. 最好是在持续集成中运行,以查找有关提交的Web性能回归,并在生产中对其进行监视并在回归时发出警报。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM