Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Object access 17879120.0 Ops/sec
Proxy access 17097800.0 Ops/sec
Proxy with get handler access 7536327.0 Ops/sec
Use of simple getter 17966540.0 Ops/sec
Use of defineProperty 18036040.0 Ops/sec
Script Preparation code:
Tests:
  • Object access

  • Proxy access

  • Proxy with get handler access

  • Use of simple getter

  • Use of defineProperty