Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/71.0
Firefox 71
Windows 7
Desktop
3 years ago
Test name Executions per second
getter / setter 12914979.0 Ops/sec
proxy 1786618.8 Ops/sec
events 1158656.0 Ops/sec
plain object 16878376.0 Ops/sec
events (kinda cheating) 3574264.8 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)