Created
May 15, 2017 19:32
-
-
Save arturparkhisenko/371306aa00b8d7e67d31ce6164f51d7d to your computer and use it in GitHub Desktop.
js-performance
This file contains 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
const costlyFunction = () => 'finished :)'; | |
performance.mark('costlyFunction Start'); | |
costlyFunction(); | |
performance.mark('costlyFunction End'); | |
performance.measure( | |
'costlyFunction', | |
'costlyFunction Start', | |
'costlyFunction End' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment