Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
getter / setter 351249.9 Ops/sec
proxy 395233.6 Ops/sec
events 199272.9 Ops/sec
plain object 445591.9 Ops/sec
events (kinda cheating) 505999.3 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)