Skip to content

Instantly share code, notes, and snippets.

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