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 12981118.0 Ops/sec
proxy 1805561.1 Ops/sec
events 1382745.8 Ops/sec
plain object 17227232.0 Ops/sec
events (kinda cheating) 4154779.5 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)