| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This framework could be used for frontend load testing with sitespeed.io (with lighthouse) and webpagetest private instance.
Framework consists of next services:
Not yet implemented:
To run framework install docker: https://docs.docker.com/engine/installation/.
You should be able to run docker run hello-world with no errors.
docker-compose pull
docker-compose build
docker-compose downOn Linux Server
sudo modprobe ifb numifbs=1
docker-compose upOn Mac OS / PC
Mac OS does not support network shaping.
docker compose -f docker-compose.yml -f docker-compose-macos.yml upNative Connection (No Traffic Shaping) will have to be used in order to work as there is no traffic shaping enabled.
All containers should be up and running
docker compose downLogin to Jenkins with admin/admin (could be changed in docker-compose file)
(BlueOcean plugin is also available)
By default jenkins consists of 2 jobs:
To run frontend test: Open FrontendJob -> Build with Parameters -> Set build parameters -> Build
This job will start sitespeed.io plus1 docker container and run test with parameters using the WebPageTest private instance.
Frontend test deliverables:
To run Lighthouse CI test: Open LighthouseCI -> Build with Parameters -> Set build parameters -> Build
This job will start lhci-client docker container and run test with parameters using Lighthouse, pushing the results to the LHCI server running on http://localhost:9001.
K6 is a modern load testing tool, using Go and JavaScript. This job will start k6 into a docker container and will use the provided script from k6/scripts folder.
To run K6 Load testing create a loading script in the k6/scripts folder and then Open K6 Load testing -> Build with Parameters -> Set build parameters -> Build.
The results will be saved on the associated k6 reports folder and also pushed to the InfluxDB running locally.
To add this dashboard follow the instructions here.
Track performance budgets & prevent unexpected bloat.
The docker compose services contains the build tracker server that can be used to send build artifacts from the build tracker CLI and monitor.
Once the service is running access localhost:9002 to see the dashboard.
In order to send build artifacts follow the instructions on the docs site. You can also find an example in the test folder for build tracker in this repo.
Ready-made dashboards are inserted with a Docker container using curl. You can check out the container with the dashboards here: https://github.com/sitespeedio/grafana-bootstrap-docker
The Sitespeed.io team worked hard to make them and the great thing is that you can use them as base dashboards, then create additional dashboards if you like.
# Pull and rebuild the entire framework
docker-compose build --pull --force-rm --no-cache
# If you want to run only 1 service
docker-compose -f docker-compose.yml -f docker-compose-macos.yml up lhci-server| Back | FazBrowse Home | New Git URL |