Skip to content

Instantly share code, notes, and snippets.

@jeppeburchardt
Created March 31, 2017 09:47
Show Gist options
  • Save jeppeburchardt/3425e93842d39527944fea9c490b32ec to your computer and use it in GitHub Desktop.
Save jeppeburchardt/3425e93842d39527944fea9c490b32ec to your computer and use it in GitHub Desktop.
ts profile
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