Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.27 Safari/537.36
Chrome 91
Linux
Desktop
3 years ago
Test name Executions per second
getter / setter 1049065.1 Ops/sec
proxy 1282911.0 Ops/sec
events 606081.8 Ops/sec
plain object 1414122.0 Ops/sec
events (kinda cheating) 1608771.4 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)