Skip to content

Instantly share code, notes, and snippets.

@arturparkhisenko
Created May 15, 2017 19:32
Show Gist options
  • Save arturparkhisenko/371306aa00b8d7e67d31ce6164f51d7d to your computer and use it in GitHub Desktop.
Save arturparkhisenko/371306aa00b8d7e67d31ce6164f51d7d to your computer and use it in GitHub Desktop.
js-performance
const costlyFunction = () => 'finished :)';
performance.mark('costlyFunction Start');
costlyFunction();
performance.mark('costlyFunction End');
performance.measure(
'costlyFunction',
'costlyFunction Start',
'costlyFunction End'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment