{"ScriptPreparationCode":"function getRandomElement(id) {\r\n return {\r\n id,\r\n a: Math.random(),\r\n b: Math.random(),\r\n c: Math.random(),\r\n }\r\n}\r\n\r\nfunction getArray(length) {\r\n const result = [];\r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n result.push(getRandomElement(i))\r\n }\r\n \r\n return result;\r\n}\r\n\r\narray_small = getArray(10000);\r\narray_large = getArray(1000000);","TestCases":[{"Name":"Find small array","Code":"const found = array_small.find(function(element) {\r\n return element.id == 9999;\r\n});\r\n\r\nfound.a = 9999;","IsDeferred":false},{"Name":"Map small array","Code":"const array = array_small.map(function(element) {\r\n if (element.id == 9999) {\r\n element.a = 9999;\r\n }\r\n \r\n return element;\r\n});","IsDeferred":false},{"Name":"Find large array","Code":"const found = array_large.find(function(element) {\r\n return element.id == 999999;\r\n});\r\n\r\nfound.a = 999999;","IsDeferred":false},{"Name":"Map large array","Code":"const array = array_large.map(function(element) {\r\n if (element.id == 999999) {\r\n element.a = 999999;\r\n }\r\n \r\n return element;\r\n});","IsDeferred":false}]}