Created
July 25, 2020 15:05
-
-
Save grplyler/852b4b9437784ecb74b7121769be5ab7 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
function test() { | |
var startTime = new Date().getTime(); | |
var counter = 0; | |
for(var i = 0; i < 10000000; i++) { | |
counter += 1 | |
} | |
var endTime = new Date().getTime(); | |
console.log("Total test time:", endTime - startTime, "ms"); | |
} | |
test() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment