Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Proxy 2013896.5 Ops/sec
defineProperty 2371685.2 Ops/sec
getter 2236120.8 Ops/sec
Proxy w/ Reflection 1108517.4 Ops/sec
Methods 2556746.0 Ops/sec
Control (plain object access) 2556173.2 Ops/sec
Script Preparation code:
Tests:
  • Proxy

  • defineProperty

  • getter

  • Proxy w/ Reflection

  • Methods

  • Control (plain object access)