Skip to main content

Analytics (work-in-progress)

Webperf Core

To utilize Webperf Core - the tests visible at Webperf.se - you can follow these steps:

  1. Set up dependencies and fork Webperf Core locally
  2. Checkout the CLI commands on how to execute the different tests

For instance, if you'd like to do an automated accessibility audit on 3000 pages in a clients sitemap with Axe Core, via a local instance of Google Lighthouse, execute this in your terminal:
python default.py -t 10 -L sv -i https://clientsite.se/sitemap.xml --input-take 3000 -o yyyy-mm-client-name.json

When the audit is done you'll have a JSON file called yyyy-mm-client-name.json in your folder with the findings.

Code sample and example output to process is at our Github repo called checkups. Reach out to Marcus Ö if you lack access.

Testing energy efficiency

python default.py -t 22 -L sv -i https://whitespace.se/sitemap.xml --input-take 100 -o energy-whitespace.json

Webperf Core june 2025 onwards

All Lighthouse tests has been merged into one. Terminal command is as follows:
docker run --platform linux/amd64 --user root -v $(pwd):/usr/src/runner webperfse/webperf-core:latest python3 default.py -t 30 -r -L sv -i https://whitespace.se/sitemap.xml --input-take 3000 -L sv -o 250609-w8e.json --setting tests.sitespeed.docker.use=false