Created
September 14, 2018 15:31
-
-
Save loicbourg/0c99d84b4f0784205079cffe341aef9f to your computer and use it in GitHub Desktop.
bench index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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