Skip to content

Instantly share code, notes, and snippets.

@ezy
Created February 27, 2017 02:38
Show Gist options
  • Save ezy/938069637c89e52c4bb2aacbe761da15 to your computer and use it in GitHub Desktop.
Save ezy/938069637c89e52c4bb2aacbe761da15 to your computer and use it in GitHub Desktop.
Records performance of a function execution in JS
console.time('someFunction');
someFunction(); // run whatever needs to be timed in between the statements
console.timeEnd('someFunction');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment