Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1
Mobile Safari 18
iOS 18.0
Mobile
4 months ago
Test name Executions per second
getter / setter 2988991.2 Ops/sec
proxy 2875354.0 Ops/sec
events 1166069.5 Ops/sec
plain object 2815771.0 Ops/sec
events (kinda cheating) 2976973.8 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)