Run details:
Mozilla/5.0 (Linux; Android 10; Armor 9 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 [FB_IAB/Orca-Android;FBAV/290.0.0.16.119;]
Chrome Mobile 86
Android
Mobile
4 years ago
Test name Executions per second
Native Event listeners 64.1 Ops/sec
Native Event listener with callbacks array 2155.5 Ops/sec
Custom EventTarget 72.5 Ops/sec
Custom EventTarget with callbacks array 2300.3 Ops/sec
Fake listeners array 13160.4 Ops/sec
Tests:
  • Native Event listeners

  • Native Event listener with callbacks array

  • Custom EventTarget

  • Custom EventTarget with callbacks array

  • Fake listeners array