{"ScriptPreparationCode":"class Basic {\r\n obj = {};\r\n add(k, v) {\r\n this.obj[k] = v;\r\n }\r\n getValues() {\r\n return Object.values(this.obj);\r\n }\r\n};\r\n\r\nclass Cached {\r\n obj = {};\r\n cache = [];\r\n add(k, v) {\r\n this.obj[k] = this.cache.length;\r\n this.cache.push(v);\r\n }\r\n getValues() {\r\n return this.cache;\r\n }\r\n};\r\n\r\nbasic = new Basic();\r\ncached = new Cached();\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n basic.add(\u0027a\u0027 \u002B i, i);\r\n cached.add(\u0027a\u0027 \u002B i, i);\r\n}\r\n","TestCases":[{"Name":"Fetch vias Object.values()","Code":"basic.getValues()","IsDeferred":false},{"Name":"Fetch via cached array","Code":"cached.getValues()","IsDeferred":false}]}