We’re excited to announce the general availability of the enhanced, professionally supported WebPageTest (WPT) API, complete with new developer-focused integrations.
Previously, the WPT API was unsupported and keys were only available to a small number of users with test queues.
Now, our entire community of developers and performance investigators can automate testing from WPT’s global infrastructure (expanding through Catchpoint’s extensive network) and integrate front-end performance metrics into their development workflow and optimization initiatives.
anchorScaling Performance Audits
WebPageTest’s optimization grades, in-depth metrics, and visual comparisons have been invaluable to performance analysis for many years but have predominantly been done manually and on an ad hoc basis.
Automating WPT tests enables performance engineers to scale and enhance performance audits and investigations by testing multiple URLs, performing regression analysis, and creating visualizations.
There are several community-built integrations that you can access today with an API key:
- WebPageTest Bulk Tester (built by Andy Davies) uses Google Sheets to test multiple URLs using WebPageTest using configurable test settings.
- AutoWebPerf (built by the Google Chrome Team) provides a flexible and scalable framework for running web performance audits.
- Request Map (built by Simon Hearne) lets you build a node map of all the requests on a page to identify what third-parties are on your site, where your transmitted bytes are coming from and how slow your domains are.
anchorIntegrating with CI/CD tools
Pulling WPT tests into pull requests lets developers integrate performance budgets into their release processes.
We’ve built the following officially supported CI/CD integrations to bring performance into the development conversation and enable developers to continuously deliver faster web pages.
WebPageTest's GitHub Action lets you automatically run tests against WebPageTest on code changes. You can set and enforce performance budgets and have performance data automatically added to your pull request to move the performance conversation directly into your existing development workflow.
- Automatically run WebPageTest against code changes
- Set and enforce budgets for any metric WebPageTest can surface (spoiler alert: there are a lot)
- Complete control over WebPageTest test settings (authentication, custom metrics, scripting, etc)
- Automatically create comments on new pull requests with key metrics, waterfall and more.
WebPageTest API Wrapper for NodeJS
WebPageTest API Wrapper is an NPM package that wraps WebPageTest API for NodeJS as a module and a command-line tool. It provides some syntactic sugar over the raw API, enabling easier integration into your existing workflows, including built in polling for results, pingback support and more.
- Built in performance budget testing
- Convenient CLI to simplify integrating with your existing CI/CD tooling
- Polling and pingback functionality to make it easier to get test results as soon as tests are completed
We can’t wait to see the new integrations our community cooks up!
Get started with the WebPageTest API and explore our API Documentation: docs.webpagetest.org/api.
Patrick Meenan has been working on web performance in one form or another for the last 20 years and is currently working on web performance measurement at Catchpoint. Prior to that he worked at Facebook, Cloudflare and Google to make Chrome and the web faster. Patrick created the popular open source WebPageTest web performance measurement tool.@patmeenan