Skip to content

Instantly share code, notes, and snippets.

@DKunin
Created May 16, 2017 13:47
Show Gist options
  • Save DKunin/3624a9ca879b9325c3b78c157fc2a58f to your computer and use it in GitHub Desktop.
Save DKunin/3624a9ca879b9325c3b78c157fc2a58f to your computer and use it in GitHub Desktop.
Performance measure
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