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
Function Call
83.3M/s
Proxy Call
28.0M/s
Initial Function Call
25.9M/s
Initial Proxy Call
16.8M/s
View exact numbers
Test name
Executions per second
✓
Function Call
83,282,264 Ops/sec
Proxy Call
27,988,804 Ops/sec
Initial Function Call
25,864,618 Ops/sec
Initial Proxy Call
16,831,482 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()