Run details:
Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Windows
Desktop
3 years ago
Test name Executions per second
getter / setter 5597011.5 Ops/sec
proxy 978417.6 Ops/sec
events 619220.3 Ops/sec
plain object 8235821.5 Ops/sec
events (kinda cheating) 1856105.9 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)