Skip to content

Instantly share code, notes, and snippets.

@aronwoost
Created January 9, 2012 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aronwoost/1582537 to your computer and use it in GitHub Desktop.
Save aronwoost/1582537 to your computer and use it in GitHub Desktop.
Basic JavaScript performance test
var start = new Date();
for (var i=0; i < 10; i++) {
// the action
};
diff = new Date() - start;
console.log(diff);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment