Measure the first response time
npm install first-response-timefirst-response-time.js script can be used to collect the first response time also known as the time to first request.
npm i -g first-response-time
sh
first-response-time "" [--ping ]
`
a correctly escaped system command.
request url.
(optional) --ping (default: 100 milliseconds)
Examples
`sh
first-response-time "java -jar uber-jar.jar" http://localhost:8080/hello
`
`sh
first-response-time "node script.js" http://localhost:8080/hello --ping 20
``