{"ScriptPreparationCode":"var arr = Array(10_000).fill(0);","TestCases":[{"Name":"flatMap","Code":"arr.flatMap(x =\u003E [x, x * 2]);","IsDeferred":false},{"Name":"for loop","Code":"const n = arr.length;\r\nconst acc = new Array(n * 2);\r\nfor (let i = 0; i \u003C n; i\u002B\u002B){\r\n const x = arr[i];\r\n acc[i * 2] = x;\r\n acc[i * 2 \u002B 1] = x * 2;\r\n}","IsDeferred":false}]}