Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Ubuntu
Desktop
3 years ago
Test name Executions per second
getter / setter 6400393.5 Ops/sec
proxy 905336.8 Ops/sec
events 737331.6 Ops/sec
plain object 12208626.0 Ops/sec
events (kinda cheating) 2497518.8 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)