{"ScriptPreparationCode":"let a = {};\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n a[\u0060cond-${i}\u0060] = [];\r\n for (let y = 0; y \u003C 1000; y\u002B\u002B) {\r\n a[\u0060cond-${i}\u0060].push(y);\r\n }\r\n}\r\n\r\nlet b1 = [];\r\nlet b2 = [];\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n b1[i] = [];\r\n b2.push(\u0060cond-${i}\u0060);\r\n for (let y = 0; y \u003C 1000; y\u002B\u002B) {\r\n b1[i].push(y);\r\n }\r\n}\r\n\r\n\r\nfunction lookup_a(id) {\r\n return a[id];\r\n}\r\n\r\nfunction lookup_b(id) {\r\n return b1[b2.indexOf(id)];\r\n}","TestCases":[{"Name":"Lookup (Key based)","Code":"for (let i = 0; i \u003C 1000; i\u002B\u002B) { lookup_a(\u0060cond-${i}\u0060) }","IsDeferred":false},{"Name":"Lookup (Index based)","Code":"for (let i = 0; i \u003C 1000; i\u002B\u002B) { lookup_b(\u0060cond-${i}\u0060) }","IsDeferred":false}]}