{"ScriptPreparationCode":"window.dates = [];\r\n\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n window.dates.push(new Date());\r\n}","TestCases":[{"Name":"Slow","Code":"function isDate(date) {\r\n return Object.prototype.toString.call(date);\r\n}\r\n\r\nfunction toISOString(date) {\r\n if (isDate(date)) {\r\n var pad = function (num) {\r\n var r = String(num);\r\n if (r.length === 1) {\r\n r = \u00220\u0022 \u002B r;\r\n }\r\n return r;\r\n };\r\n return date.getUTCFullYear()\r\n \u002B \u0022-\u0022 \u002B pad(date.getUTCMonth() \u002B 1)\r\n \u002B \u0022-\u0022 \u002B pad(date.getUTCDate())\r\n \u002B \u0022T\u0022 \u002B pad(date.getUTCHours())\r\n \u002B \u0022:\u0022 \u002B pad(date.getUTCMinutes())\r\n \u002B \u0022:\u0022 \u002B pad(date.getUTCSeconds())\r\n \u002B \u0022.\u0022 \u002B String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)\r\n \u002B \u0022Z\u0022;\r\n }\r\n}\r\n\r\nwindow.dates.forEach(date =\u003E toISOString(date));","IsDeferred":false},{"Name":"Fast","Code":"function getIsoString(date) {\r\n try {\r\n return date.toISOString();\r\n } catch { }\r\n }\r\n\r\nwindow.dates.forEach(date =\u003E getIsoString(date));","IsDeferred":false}]}