Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/124.0.6367.111 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 124
iOS 17.4
Mobile
7 months ago
Test name Executions per second
getter / setter 3507616.2 Ops/sec
proxy 3407188.0 Ops/sec
events 1333760.9 Ops/sec
plain object 3387968.8 Ops/sec
events (kinda cheating) 3400655.2 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)