Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
getter / setter 4270026.0 Ops/sec
proxy 1337991.9 Ops/sec
events 796386.9 Ops/sec
plain object 5069930.0 Ops/sec
events (kinda cheating) 1946663.9 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)