Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
get function 6122489.5 Ops/sec
proxy target[key] 8410047.0 Ops/sec
proxy reflect.get 3287861.0 Ops/sec
get function wrapped in proxy 3597631.5 Ops/sec
proxy wrapped in proxy 4274882.5 Ops/sec
proxy reflect.get wrapped in proxy 2373607.0 Ops/sec
Script Preparation code:
Tests:
  • get function

  • proxy target[key]

  • proxy reflect.get

  • get function wrapped in proxy

  • proxy wrapped in proxy

  • proxy reflect.get wrapped in proxy