{"ScriptPreparationCode":null,"TestCases":[{"Name":"runFilterAndMapTest","Code":"const COLLECTION_LENGTH = 1000;\r\nconst TEST_ITERATIONS = 100;\r\n\r\nconst getSingleCollection = (collectionLength) =\u003E\r\n Array.from({ length: collectionLength }, (_, k) =\u003E ({\r\n id: k \u002B 1,\r\n name: \u0060name of ${k \u002B 1}\u0060\r\n }));\r\n\r\n\r\n\r\nconst runFilterAndMapTest = (collection) =\u003E {\r\n return collection.filter(sampleObj =\u003E sampleObj.id \u003E 50).map(sampleObj =\u003E sampleObj.name);\r\n};\r\n\r\n\r\nfor (let i = 0; i \u003C= TEST_ITERATIONS; i\u002B\u002B) {\r\n const collection = getSingleCollection(COLLECTION_LENGTH);\r\n runFilterAndMapTest(collection);\r\n}\r\n","IsDeferred":false},{"Name":"runReduceTest","Code":"const COLLECTION_LENGTH = 1000;\r\nconst TEST_ITERATIONS = 100;\r\n\r\nconst getSingleCollection = (collectionLength) =\u003E\r\n Array.from({ length: collectionLength }, (_, k) =\u003E ({\r\n id: k \u002B 1,\r\n name: \u0060name of ${k \u002B 1}\u0060\r\n }));\r\n\r\n\r\nconst runReduceTest = (collection) =\u003E {\r\n return collection.reduce((acc, sampleObj) =\u003E {\r\n if (sampleObj.id \u003E 50) {\r\n acc.push(sampleObj.name);\r\n }\r\n return acc;\r\n }, []);\r\n};\r\n\r\nfor (let i = 0; i \u003C= TEST_ITERATIONS; i\u002B\u002B) {\r\n const collection = getSingleCollection(COLLECTION_LENGTH);\r\n runReduceTest(collection);\r\n}\r\n","IsDeferred":false}]}