Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63
Opera 80
Windows 7
Desktop
3 years ago
Test name Executions per second
getter / setter 947362.4 Ops/sec
proxy 1118107.4 Ops/sec
events 518428.8 Ops/sec
plain object 1239803.2 Ops/sec
events (kinda cheating) 1389833.0 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)