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.
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
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
}
}
]