Created
March 18, 2020 17:22
-
-
Save kunigami/9fb19aba4e2130b9d41d285a328f8b2c to your computer and use it in GitHub Desktop.
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
performance.mark('expensive-start'); | |
expensive(); | |
performance.mark('expensive-end'); | |
const value = performance.measure( | |
'expensive-mark', | |
'expensive-start', | |
'expensive-end', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment