{"ScriptPreparationCode":"var keyCount = 16384\r\nvar keys = []\r\nvar map = new Map()\r\nvar weakmap = new WeakMap()\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 = {}\r\n keys.push(key)\r\n map.set(key,val)\r\n weakmap.set(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 WeakMap 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 = weakmap.get(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 WeakMap 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 = weakmap.get(key)\r\n}","IsDeferred":false}]}