Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
getter / setter 2017132.9 Ops/sec
proxy 2290685.8 Ops/sec
events 1071692.5 Ops/sec
plain object 2625641.0 Ops/sec
events (kinda cheating) 2897956.2 Ops/sec
Script Preparation code:
Tests:
  • getter / setter

  • proxy

  • events

  • plain object

  • events (kinda cheating)