{"ScriptPreparationCode":null,"TestCases":[{"Name":"Custom Event","Code":"let i = 1001;\r\nconst results = [];\r\nwhile (--i) {\r\n window.dispatchEvent(new CustomEvent(\u0027custom:test\u0027));\r\n}\r\nwindow.addEventListener(\u0027custom:test\u0027, () =\u003E console.log(\u0027hi\u0027))\r\n\r\n","IsDeferred":false},{"Name":"Callback","Code":"function cb() {\r\n\tconsole.log(\u0027hi\u0027)\r\n}\r\nlet i = 1001;\r\nconst results = [];\r\nwhile (--i) {\r\n cb();\r\n}","IsDeferred":false}]}