Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
Native Event listeners 182.5 Ops/sec
Native Event listener with callbacks array 935.8 Ops/sec
Custom EventTarget 115.0 Ops/sec
Custom EventTarget with callbacks array 857.9 Ops/sec
Fake listeners array 30563.9 Ops/sec
Tests:
  • Native Event listeners

  • Native Event listener with callbacks array

  • Custom EventTarget

  • Custom EventTarget with callbacks array

  • Fake listeners array