Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141
Mac OS X 10.15.7
Desktop
6 months ago
Test name Executions per second
Function invocation 167058176.0 Ops/sec
Proxy with apply 37383156.0 Ops/sec
Proxy with Reflect 38083768.0 Ops/sec
Object method 161782624.0 Ops/sec
Object With Patched emthod 39912608.0 Ops/sec
Object with proxy proxy 21513976.0 Ops/sec
Script Preparation code:
Tests:
  • Function invocation

  • Proxy with apply

  • Proxy with Reflect

  • Object method

  • Object With Patched emthod

  • Object with proxy proxy