{"ScriptPreparationCode":"function fastSqrt(num) {\r\n let err = 1;\r\n let guess = num / 2;\r\n\r\n while (err \u003E 0.9) {\r\n let next = (guess \u002B num / guess) / 2;\r\n err = Math.abs(next - guess);\r\n guess = next;\r\n }\r\n\r\n return Math.floor(guess);\r\n}\r\nvar arr = Array.from({ length: 100 }).map(() =\u003E Math.floor(Math.random() * 50000) \u002B 0)","TestCases":[{"Name":"Math.sqrt","Code":"arr.forEach((item) =\u003E Math.sqrt(item));","IsDeferred":false},{"Name":"FastSqrt","Code":"arr.forEach((item) =\u003E fastSqrt(item));","IsDeferred":false}]}