https://github.com/msn0/teti
CLI for testing DOM timings built upon Headless Chrome & Lighthouse π
https://github.com/msn0/teti
cli first-paint lighthouse performance timings
Last synced: 9 months ago
JSON representation
CLI for testing DOM timings built upon Headless Chrome & Lighthouse π
- Host: GitHub
- URL: https://github.com/msn0/teti
- Owner: msn0
- Created: 2017-05-11T18:37:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:38:01.000Z (over 3 years ago)
- Last Synced: 2025-09-15T06:53:50.932Z (9 months ago)
- Topics: cli, first-paint, lighthouse, performance, timings
- Language: JavaScript
- Homepage:
- Size: 2.87 MB
- Stars: 14
- Watchers: 1
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> CLI for testing DOM timings built upon [Headless Chrome](https://developers.google.com/web/updates/2017/04/headless-chrome) & [Lighthouse](https://github.com/GoogleChrome/lighthouse) π
[](http://travis-ci.org/msn0/teti)
## Installation
```
npm i -g teti
```
## Usage
```
$ teti --help
Usage
$ teti
Options
-n number of tests to run (10 is default)
--custom custom User Timing (performance.mark) to be measured
--verbose output all data
```
## Examples
```
β teti google.com
Results for http://google.com based on 10 requests:
Timing median mean p95 ΟΒ² MAD
domLoading 0.2 0.2 0.22 0.18 0.01
domInteractive 0.29 0.29 0.32 0.36 0.02
domComplete 0.67 0.68 0.83 3.34 0.03
first-paint 0.35 0.35 0.4 0.44 0.01
```
```
β teti https://www.theguardian.com/football -n 30 --custom "commercial boot"
Results for https://www.theguardian.com/football based on 30 requests:
Timing median mean p95 ΟΒ² MAD
domLoading 0.16 0.16 0.17 0.03 0
domInteractive 0.68 0.67 0.8 7.73 0.07
domComplete 3.42 3.58 4.94 284.16 0.3
first-paint 0.34 0.34 0.38 0.58 0.01
commercial boot 0.87 0.84 1.06 17.73 0.1
```
## Metrics & Timings
By default teti collects the following timings:
* [domLoading](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domLoading)
* [domInteractive](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domInteractive)
* [domComplete](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domComplete)
* [first-paint](https://github.com/WICG/paint-timing)
Based on collected data, the following statistical metrics are calculated:
* [median](https://en.wikipedia.org/wiki/Median)
* [mean](https://en.wikipedia.org/wiki/Mean)
* p95 - 95th [percentile](https://en.wikipedia.org/wiki/Percentile)
* ΟΒ² - [variance](https://en.wikipedia.org/wiki/Variance)
* MAD - [median absolute deviation](https://en.wikipedia.org/wiki/Median_absolute_deviation)
## License
MIT Β© [MichaΕ Jezierski](https://github.com/msn0)