Skip to content

Instantly share code, notes, and snippets.

@andywenk
Created April 14, 2010 09:54
Show Gist options
  • Save andywenk/365629 to your computer and use it in GitHub Desktop.
Save andywenk/365629 to your computer and use it in GitHub Desktop.
// This is a really simple performance test
// use this with firebug
var start = (new Date()).getMilliseconds();
// function or script stuff
var end = (new Date()).getMilliseconds();
var diff = end - start;
console.log('start: ' + start + ' end: ' + end + ' diff: ' + diff);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment