Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/theKashey/flow-meter

http(s/2) chunked response meter
https://github.com/theKashey/flow-meter

Last synced: about 2 months ago
JSON representation

http(s/2) chunked response meter

Awesome Lists containing this project

README

        

Flow Meter
===

HTTP/HTTPS/HTTP2 stream meter

- supports gzip/brotly compression
- reports about every important moment of data flow
- reports timing till major HTTP tags

## Usage

### CLI

`flow-meter `

### API

- ✅ `import {meter} from 'flow-meter'`

```js
meter('https://theurge.com.au', {
http2: true,
compression: 'gzip',
}).then(console.log)
```

⬇️ ⬇️ ⬇️ ⬇️

```text
{
preflight: {
dnsLookup: 160,
tcpConnection: 259,
tlsHandshake: 290,
total: 709 <-- 💩WOOPS
},
data: {
rawFirstByte: 718, <-- slow SSR?
firstByte: 2,
end: 321, <-- slow transfer
total: 1041
},
html: {
head: 0,
script: 0,
title: 103, <-- hmm, why delay?
body: 1,
header: 2,
h2: 105,
footer: 1,
end: 108, <-- 100ms from till