Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Linux
Desktop
one year ago
Test name Executions per second
Native Event listeners 218.2 Ops/sec
Native Event listener with callbacks array 3238.8 Ops/sec
Custom EventTarget 155.9 Ops/sec
Custom EventTarget with callbacks array 2578.6 Ops/sec
Fake listeners array 8560.1 Ops/sec
Tests:
  • Native Event listeners

  • Native Event listener with callbacks array

  • Custom EventTarget

  • Custom EventTarget with callbacks array

  • Fake listeners array