Skip to content

Instantly share code, notes, and snippets.

@sbstjn
Last active June 30, 2016 08:56
Show Gist options
  • Save sbstjn/327ec789c13df3a0547b65905b5fea06 to your computer and use it in GitHub Desktop.
Save sbstjn/327ec789c13df3a0547b65905b5fea06 to your computer and use it in GitHub Desktop.
Example usage of `latenz` npm module
const Latenz = require('latenz');
const l = new Latenz();
l.measure('sbstjn.com').then(result => {
console.log(result);
}).catch((e) => {
throw e;
});
$ > npm install latenz -g
$ > latenz sbstjn.com
host: sbstjn.com
Name Lookup: 10ms
Connection: 3ms (13ms)
Response: 63ms (76ms)
Received: 5ms (81ms)
total: 81ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment