{"ScriptPreparationCode":null,"TestCases":[{"Name":"\u0022on input, 100xs\u0022","Code":"const onKeyDown = (e) =\u003E console.log({e});\r\n\r\nconst input = document.getElementById(\u0027input\u0027);\r\ninput.addEventListener(\u0027keydown\u0027, onKeyDown, false);\r\n\r\ninput.dispatchEvent(new Event(\u0027focus\u0027));\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n\tinput.dispatchEvent(new KeyboardEvent(\u0027keypress\u0027,{\u0027key\u0027:\u0027a\u0027}));\r\n}","IsDeferred":false},{"Name":"\u0022on window, 100xs\u0022","Code":"const onKeyDown = (e) =\u003E console.log({e});\r\n\r\nconst input = document.getElementById(\u0027input\u0027);\r\nwindow.addEventListener(\u0027keydown\u0027, onKeyDown, false);\r\ninput.dispatchEvent(new Event(\u0027focus\u0027));\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n\tinput.dispatchEvent(new KeyboardEvent(\u0027keypress\u0027,{\u0027key\u0027:\u0027a\u0027}));\r\n}","IsDeferred":false},{"Name":"\u0022on window, 1000xs\u0022","Code":"const onKeyDown = (e) =\u003E console.log({e});\r\n\r\nconst input = document.getElementById(\u0027input\u0027);\r\nwindow.addEventListener(\u0027keydown\u0027, onKeyDown, false);\r\ninput.dispatchEvent(new Event(\u0027focus\u0027));\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tinput.dispatchEvent(new KeyboardEvent(\u0027keypress\u0027,{\u0027key\u0027:\u0027a\u0027}));\r\n}","IsDeferred":false},{"Name":"\u0022on window, 10xs\u0022","Code":"const onKeyDown = (e) =\u003E console.log({e});\r\n\r\nconst input = document.getElementById(\u0027input\u0027);\r\nwindow.addEventListener(\u0027keydown\u0027, onKeyDown, false);\r\ninput.dispatchEvent(new Event(\u0027focus\u0027));\r\n\r\nfor (let i = 0; i \u003C 10; i\u002B\u002B) {\r\n\tinput.dispatchEvent(new KeyboardEvent(\u0027keypress\u0027,{\u0027key\u0027:\u0027a\u0027}));\r\n}","IsDeferred":false},{"Name":"\u0022on input, 1000xs\u0022","Code":"const onKeyDown = (e) =\u003E console.log({e});\r\n\r\nconst input = document.getElementById(\u0027input\u0027);\r\ninput.addEventListener(\u0027keydown\u0027, onKeyDown, false);\r\n\r\ninput.dispatchEvent(new Event(\u0027focus\u0027));\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tinput.dispatchEvent(new KeyboardEvent(\u0027keypress\u0027,{\u0027key\u0027:\u0027a\u0027}));\r\n}","IsDeferred":false},{"Name":"\u0022on input, 10xs\u0022","Code":"const onKeyDown = (e) =\u003E console.log({e});\r\n\r\nconst input = document.getElementById(\u0027input\u0027);\r\ninput.addEventListener(\u0027keydown\u0027, onKeyDown, false);\r\n\r\ninput.dispatchEvent(new Event(\u0027focus\u0027));\r\n\r\nfor (let i = 0; i \u003C 10; i\u002B\u002B) {\r\n\tinput.dispatchEvent(new KeyboardEvent(\u0027keypress\u0027,{\u0027key\u0027:\u0027a\u0027}));\r\n}","IsDeferred":false}]}