Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Function call vs proxy call
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Initial Function Call
25864618.0 Ops/sec
Initial Proxy Call
16831482.0 Ops/sec
Function Call
83282264.0 Ops/sec
Proxy Call
27988804.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function setup() { const obj = { a: 4 } function getA() { return obj.a } const proxy = new Proxy(getA, {}) return [getA, proxy] } const [_getA, _proxy] = setup() function getExisting() { return [_getA, _proxy] }
Tests:
Initial Function Call
const [getA, proxy] = setup() const a = getA()
Initial Proxy Call
const [getA, proxy] = setup() const a = proxy()
Function Call
const [getA, proxy] = getExisting() const a = getA()
Proxy Call
const [getA, proxy] = getExisting() const a = proxy()