Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created April 9, 2013 18:10
Show Gist options
  • Save DavidQL/5347976 to your computer and use it in GitHub Desktop.
Save DavidQL/5347976 to your computer and use it in GitHub Desktop.
console.time('non-local');
var myObject = {
key1: {
key2: {
key3: 1
}
}
}
for (var i = 0; i < 10000; i++) {
myObject.key1.key2.key3++;
}
console.timeEnd('non-local');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment