ktitaro / netspeed

Utility that helps to measure network performance using cURL ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netspeed Auditor

Utility that helps to measure network performance metrics using cURL. While its not recommended to rely on this tool for getting insights about your frontends (read more), its very handy to measure your backends or microservices network stats. This tool is highly inspired by the content of this article.

How to run it

Using node.js:

$ yarn install
$ node ./netspeed -u https://example.com -n 5 > net.json

Using docker:

$ docker build -t netspeed .
$ docker container run -it netspeed \
  -u https://example.com -n 5 > net.json

Network metrics

All metrics are measured in milliseconds (ms)

[
  {
    "timeline": {
      "domainLookupAt": 5,
      "tcpHandshakeAt": 1180,
      "sslHandshakeAt": 1537,
      "redirectDoneAt": 0,
      "requestStartAt": 1537,
      "responseStartAt": 1711,
      "responseFinishAt": 1712
    },
    "timespan": {
      "domainLookupTook": 5,
      "tcpHandshakeTook": 1175,
      "sslHandshakeTook": 357,
      "serverHandleTook": 174
    }
  }
]

About

Utility that helps to measure network performance using cURL ✨


Languages

Language:JavaScript 97.8%Language:Dockerfile 2.2%