-
-
Save cubespace/e7528bf87c202b522fd5d63d754a92c3 to your computer and use it in GitHub Desktop.
Методика анализа производительности // JS Ninja Secrets
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
start = new Date().getTime(); | |
for ( n = 0; n < maxCount; n++ ) { | |
/* measuringFunction(); */ | |
}; | |
elapsed = new Date().getTime() - start; | |
alert("Measured time: " + elapsed); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment