Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:38:01.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T19:20:06.109Z (8 days ago)
- Topics: cli, first-paint, lighthouse, performance, timings
- Language: JavaScript
- Homepage:
- Size: 2.87 MB
- Stars: 14
- Watchers: 2
- 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) π
[![Build Status](https://travis-ci.org/msn0/teti.svg?branch=master)](http://travis-ci.org/msn0/teti)
## Installation
```
npm i -g teti
```## Usage
```
$ teti --helpUsage
$ tetiOptions
-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.comResults 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)