Skip to content

Instantly share code, notes, and snippets.

@jqr
Created April 9, 2009 18:46
Show Gist options
  • Save jqr/92662 to your computer and use it in GitHub Desktop.
Save jqr/92662 to your computer and use it in GitHub Desktop.
Benchmark = function(description, timed_function) {
var start = new Date()
timed_function();
console.debug(description + ': ' + (new Date() - start) + 'ms');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment