{"ScriptPreparationCode":"function ip2num1(ip){\r\n\tvar octets = ip.split(\u0027.\u0027).map(o=\u003E\u002Bo);\r\n\treturn (octets[3]) | (octets[2]\u003C\u003C8) | (octets[1]\u003C\u003C16) | (octets[0] \u003C\u003C 24);\r\n}\r\n\r\nfunction ip2num2(ip){\r\n\tvar octets = ip.split(\u0027.\u0027).map(o=\u003E\u002Bo).reverse();\r\n\tvar num = 0; var o;\r\n\twhile(o = octets.pop()){\r\n\t\tnum *= 256;\r\n\t\tnum \u002B= o;\r\n\t}\r\n\treturn num;\r\n}\r\n\r\nvar testIps = Array(1000).fill(0).map(()=\u003EArray(4).fill(0).map(n=\u003EMath.floor(Math.random()*256).toString()).join(\u0027.\u0027))","TestCases":[{"Name":"Function 1","Code":"var result1 = testIps.map(ip2num1);","IsDeferred":false},{"Name":"Function 2","Code":"var result1 = testIps.map(ip2num2);","IsDeferred":false}]}