Skip to content

Instantly share code, notes, and snippets.

@loicbourg
Created September 14, 2018 15:31
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 loicbourg/0c99d84b4f0784205079cffe341aef9f to your computer and use it in GitHub Desktop.
Save loicbourg/0c99d84b4f0784205079cffe341aef9f to your computer and use it in GitHub Desktop.
bench index
const list = {
'a': null,
'b': null,
'c': null,
'd': null,
'e': null,
'f': null,
'g': null,
'h': null,
'i': null,
'j': null,
'k': null,
'l': null,
'm': null,
'n': null,
'o': null,
};
const start = Date.now();
for (let i=0; i<100000; i++) {
let result = list['h'];
}
console.log(Date.now() - start);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment