Created
August 18, 2020 08:39
-
-
Save kevinmamaqi/daf1e395d03c3602d4d6b58a29664192 to your computer and use it in GitHub Desktop.
Measure performance in .JS https://stackoverflow.com/questions/313893/how-to-measure-time-taken-by-a-function-to-execute
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
var t0 = performance.now(); | |
myFunction(); | |
var t1 = performance.now(); | |
console.log("Call to dates took " + (t1 - t0) + " milliseconds."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment