Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 OPR/78.0.4093.147
Opera 78
Windows 7
Desktop
3 years ago
Test name Executions per second
getter / setter 981434.1 Ops/sec
proxy 1142568.8 Ops/sec
events 517282.4 Ops/sec
plain object 1229942.6 Ops/sec
events (kinda cheating) 1369490.0 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)