Website performance
Sitespeed
Generate html report for website:
export URL='https://auth.oas.greenhost.net/auth/admin/'
export URL="https://www.plainpicture.com/de/search?string=$(diceware -n1)"
docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io -b chrome "$URL"
Sitespeed html reports will get saved to ./sitespeed-result
Browsertime
Use browsertime to get a json doc (together with a video and a .har):
docker run --shm-size=1g --rm -v "$(pwd)":/browsertime sitespeedio/browsertime "$URL"
Browsertime files will get saved to ./browsertime-results
Use this to display the max fullyloaded time in ms:
find ./browsertime-results -name '*.json' -exec sh -c "echo -n '{}: '; jq '.statistics.timings.fullyLoaded.max' < {}" \;
To only find out the LastVisualChange time:
docker run --shm-size=1g --rm -v "$(pwd)":/browsertime sitespeedio/browsertime \
https://example.org | grep LastVisualChange | sed 's/^.*Last/Last/'
Load testing
- k6: modern load testing tool, building on Load Impact's years of experience in the load and performance testing industry