Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82
Mac OS X 10.16
Desktop
4 years ago
Test name Executions per second
Native Event listeners 114.7 Ops/sec
Native Event listener with callbacks array 3214.8 Ops/sec
Custom EventTarget 133.5 Ops/sec
Custom EventTarget with callbacks array 1409.6 Ops/sec
Fake listeners array 5433.1 Ops/sec
Tests:
  • Native Event listeners

  • Native Event listener with callbacks array

  • Custom EventTarget

  • Custom EventTarget with callbacks array

  • Fake listeners array