Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15
Safari 18
Mac OS X 10.15.7
Desktop
9 days ago
Test name Executions per second
Object access 374240800.0 Ops/sec
Proxy access 168965392.0 Ops/sec
Proxy with get handler access 28102984.0 Ops/sec
Use of simple getter 365375712.0 Ops/sec
Use of defineProperty 418255744.0 Ops/sec
Script Preparation code:
Tests:
  • Object access

  • Proxy access

  • Proxy with get handler access

  • Use of simple getter

  • Use of defineProperty