Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

CLI for testing DOM timings built upon Headless Chrome & Lighthouse πŸ’œ

Awesome Lists containing this project

README

        




teti




teti screencast


> 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 --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)