Access the Web Performance Timeline, from your browser, in your terminal!
Browsertime allows you to:
$ bin/browsertime.js https://www.sitespeed.io
Load https://www.sitespeed.io in Chrome three times. Results are stored in a json file (browsertime.json) with the timing data, and a har file (browsertime.har) in
Checkout the examples.
Browsertime uses Selenium NodeJS to drive the browser. It starts the browser, load a URL, executes configurable Javacsripts to collect metrics, collect a HAR file.
To get the HAR from Firefox we use the HAR Export Trigger and Chrome we parse the timeline log and generates the HAR file.
Oh and you can run your own Selenium script before (
--preScript) and after (
--postScript) a URL is accessed, so you can login/logout or do whatever you want.
If you would would like to get started there are a few examples that can be found in the docs folder. If you run into any issues getting started using Browsertime visit our issues page for some common issues/solutions. If you still cannot resolve the problem and feel the issue is within browsertime feel free to open an issue.