web-perf-test: Web performance measuring tool using Puppeteer
This is a pretty simple CLI tool for measuring the initial page loading time of a web site, using Puppeteer.
It measures until the timing data is considered stable and prints out the statistics together with a box plot.
$ npm install -g web-perf-test
usage: web-perf-test [-h] [-v] [--show-chrome] url Automated web performance test using Puppeteer. Positional arguments: url URL of the page to measure Optional arguments: -h, --help Show this help message and exit. -v, --version Show program's version number and exit. --show-chrome Make the Chromium browser visible
What is measured?
web-perf-test loads the given page using Puppeteer and evaluates the
loading time using the
data in the browser.
More specifically, it calculates
loadEventEnd - requestStart.
represents the moment when the load event is completed, and
represents the moment when the browser sent the request to obtain the actual
How are the data measured?
The loading time is measured at least 25 times. After that, the tool checks if the data is stable. If it is not stable, keep measuring until it becomes stable or the total number of measurements is 50.