Skip to content

Instantly share code, notes, and snippets.

@nomeyer
Last active March 24, 2016 19:49
Show Gist options
  • Save nomeyer/38c8ce5d2588b5c33af3 to your computer and use it in GitHub Desktop.
Save nomeyer/38c8ce5d2588b5c33af3 to your computer and use it in GitHub Desktop.
JavaScript to measure the performance of something
var start = performance.now();
var end = performance.now();
console.log('Doing stuff took ' + (end-start) + 'ms');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment