{"ScriptPreparationCode":"let start = null;\r\nlet end = null;\r\n\r\nlet epochMs = Date.now();\r\nlet perfMs = performance.now();","TestCases":[{"Name":"Date.now()","Code":"start = Date.now();\r\nend = Date.now();","IsDeferred":false},{"Name":"new Date().getTime();","Code":"start = new Date().getTime();\r\nend = new Date().getTime();","IsDeferred":false},{"Name":"performance.now()","Code":"start = performance.now()\r\nend = performance.now()","IsDeferred":false},{"Name":"performance.measure","Code":"performance.mark(\u0027start\u0027)\r\nstart = Date.now()\r\nconst { duration } = performance.measure(\u0027span\u0027, \u0027start\u0027)\r\nend = start \u002B duration","IsDeferred":false},{"Name":"Date.now() \u0026 performance.now","Code":"// 1000.2534221 = offset delta\r\n\r\nconst startDelta = performance.mark(\u0027start\u0027).startTime - 1000.2534221\r\nstartTime = 1000.2534221 \u002B startDelta\r\n\r\nconst endDelta = performance.measure(\u0027span_duration\u0027, \u0027start\u0027).duration\r\nendTime = 1000.2534221 \u002B endDelta\r\n","IsDeferred":false}]}