Created
April 19, 2018 12:13
-
-
Save Bujhm/45760d1cceee5470b5e77f8eeb82ccd3 to your computer and use it in GitHub Desktop.
runtime measurement of javascript code
This file contains hidden or 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
//Замеряем время выполнения Javascript кода | |
var time = performance.now(); | |
//некий код | |
time = performance.now() - time; | |
console.log('Время выполнения = ', time); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment