{"ScriptPreparationCode":"var keyCount = 16384\r\nvar keys = []\r\nvar map = new Map()\r\nvar obj = {}\r\nvar emptyMap = new Map()\r\nvar emptyObj = {}\r\n\r\n\r\n// Hide lookup keys to prevent V8 cheating (AKA Optimizing)\r\nvar getConspicuousKey = seed =\u003E keys[Math.floor(seed * keyCount)]\r\n\r\n\r\n// Setup out test objects w/ random values\r\nfor (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let val = Math.random()\r\n let key = Math.random()\r\n keys.push(key)\r\n map.set(key,val)\r\n obj[key] = val\r\n}\r\n","TestCases":[{"Name":"Conspicuous Map lookup","Code":"for (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let seed = Math.random()\r\n let key = getConspicuousKey(seed)\r\n a = map.get(key)\r\n}","IsDeferred":false},{"Name":"Conspicuous Obj lookup","Code":"for (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let seed = Math.random()\r\n let key = getConspicuousKey(seed)\r\n a = obj[key]\r\n}","IsDeferred":false},{"Name":"Conspicuous Map lookup 2","Code":"for (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let seed = Math.random()\r\n let key = getConspicuousKey(seed)\r\n a = map.get(key)\r\n}","IsDeferred":false},{"Name":"Conspicuous Obj lookup 2","Code":"for (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let seed = Math.random()\r\n let key = getConspicuousKey(seed)\r\n a = obj[key]\r\n}","IsDeferred":false},{"Name":"Conspicuous Map Set","Code":"for (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let seed = Math.random()\r\n let key = getConspicuousKey(seed)\r\n emptyMap.set(key, seed)\r\n}","IsDeferred":false},{"Name":"Conspicuous Obj Set","Code":"for (let i=0; i\u003CkeyCount; i\u002B\u002B) {\r\n let seed = Math.random()\r\n let key = getConspicuousKey(seed)\r\n emptyObj[key] = seed\r\n}","IsDeferred":false}]}