Created
August 21, 2016 18:46
-
-
Save tripplyons/20ffafaa8c445f20a01eef283b7f5f9f 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
var iterations = 1000000; | |
console.time('Function #1'); | |
for(var i = 0; i < iterations; i++ ){ | |
functionOne(); | |
}; | |
console.timeEnd('Function #1') | |
console.time('Function #2'); | |
for(var i = 0; i < iterations; i++ ){ | |
functionTwo(); | |
}; | |
console.timeEnd('Function #2') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment