Access to Proxy vs Array

one month ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Test name Executions per second
Array access 142150224.0 Ops/sec
Proxy access 21883988.0 Ops/sec
Proxy with reflect handler 11343484.0 Ops/sec
Proxy with handler 14762487.0 Ops/sec
Script Preparation code:
Tests:
  • Array access

  • Proxy access

  • Proxy with reflect handler

  • Proxy with handler

Open this result on MeasureThat.net