Skip to content

Instantly share code, notes, and snippets.

@evilpie
Created July 17, 2012 22:53
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 evilpie/3132685 to your computer and use it in GitHub Desktop.
Save evilpie/3132685 to your computer and use it in GitHub Desktop.
function test (array) {
var i = 0;
for (var a = 0; a < 10; a++) {
for (var x in array) {
i = i + array[x];
}
}
}
var a = new Array(1000);
for (var i = 0; i < 1000; i++)
a[i] = i;
for (i = 0; i < 10; i++)
test(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment