Created
February 27, 2017 02:38
-
-
Save ezy/938069637c89e52c4bb2aacbe761da15 to your computer and use it in GitHub Desktop.
Records performance of a function execution in JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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