Skip to content

Benchmark the web performance and accessibility of sites over time.

License

Notifications You must be signed in to change notification settings

unisdr/undrr-speedlify

 
 

Repository files navigation

speedlify

Here we use Speedlify to Continuously Measure Site Performance of UNDRR websites.

Run locally

npm install
npm run dev

Generate assets

We do not yet build the assets as CI.

Locally you must:

  1. npm run build-production
  2. Commit assets from _data directory
  3. Push to the remote
  4. Github will then automatically dpeloy the latest changes

Original readme.md follows

Related

Deploy to Netlify

Can run directly on Netlify (including your tests) and will save the results to a Netlify build cache (via Netlify Build Plugins, see plugins/keep-data-cache/).

After cloning you’ll probably want to delete the initial _data/sites/*.js files and create your own file with a list of your own site URLs!

Speedlify will also save your data to /results.zip so that you can download later. Though this has proved to be unnecessary so far, it does serve as a fallback backup mechanism in case the Netlify cache is lost. Just look up your previous build URL and download the data to restore.

Netlify Status

Known Limitations

  • If you change a URL to remove a redirect (to remove or add a www., moved domains, etc), you probably want to delete the old URL’s data otherwise you’ll have two entries in the results list.
  • When running on Netlify, a single category has a max limit on the number of sites it can test, upper bound on how many tests it can complete in the 15 minute Netlify build limit.
  • The same URL cannot be listed in two different categories (yet).

Pay for something better

Speedlify is intended as a stepping stone to more robust performance monitoring solutions like:

About

Benchmark the web performance and accessibility of sites over time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.8%
  • Nunjucks 31.8%
  • CSS 15.4%