Skip to content

Instantly share code, notes, and snippets.

@chardos
Created December 15, 2015 13:06
Show Gist options
  • Save chardos/1743e13afe4054438f30 to your computer and use it in GitHub Desktop.
Save chardos/1743e13afe4054438f30 to your computer and use it in GitHub Desktop.
console.time()
console.time("factorial test");
for (var i = 1; i < 100000; i++) {
factorial(20);
}
console.timeEnd("factorial test");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment