Created
March 31, 2017 09:47
-
-
Save jeppeburchardt/3425e93842d39527944fea9c490b32ec to your computer and use it in GitHub Desktop.
ts profile
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
console.profile(); | |
let i = 0; | |
let id = setInterval(() => { | |
const url = ++i % 2 ? '/details/52176516' : '/details/52262234'; | |
store.dispatch({ type: '@@history/NAVIGATE', url }); | |
if (i > 25) { | |
clearInterval(id); | |
console.profileEnd(); | |
alert('Profiling complete!'); | |
} | |
}, 3500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment