{"ScriptPreparationCode":null,"TestCases":[{"Name":"PUSH NAIVE","Code":"let distinctRecords = [];\r\nlet distinctOutputColInBatch = [];\r\nconst SIZE = 10000;\r\nfor (let j = 0; j \u003C SIZE; \u002B\u002Bj) {\r\n distinctRecords.push({ first: Math.random().toString(), id: Math.random() });\r\n distinctOutputColInBatch.push({ first: Math.random().toString(), id: Math.random() });\r\n}\r\n\r\nconst originalLength = distinctRecords.length;\r\ndistinctRecords.length = originalLength \u002B distinctOutputColInBatch.length;\r\nfor (let i = 0; i \u003C distinctOutputColInBatch.length; \u002B\u002Bi) {\r\n distinctRecords[originalLength \u002B i] = distinctOutputColInBatch[i];\r\n}\r\n\r\nconsole.log(distinctRecords.length);","IsDeferred":false},{"Name":"Concat","Code":"let distinctRecords = [];\r\nlet distinctOutputColInBatch = [];\r\nconst SIZE = 10000;\r\nfor (let j = 0; j \u003C SIZE; \u002B\u002Bj) {\r\n distinctRecords.push({ first: Math.random().toString(), id: Math.random() });\r\n distinctOutputColInBatch.push({ first: Math.random().toString(), id: Math.random() });\r\n}\r\n\r\ndistinctRecords = distinctRecords.concat(distinctOutputColInBatch);\r\n\r\nconsole.log(distinctRecords.length);","IsDeferred":false}]}