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 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.5
Device Platform:
Mobile
Date tested:
one year ago
Function Call
152.1M/s
Initial Function Call
36.6M/s
Proxy Call
21.5M/s
Initial Proxy Call
14.5M/s
View exact numbers
Test name
Executions per second
✓
Function Call
152,097,344 Ops/sec
Initial Function Call
36,553,652 Ops/sec
Proxy Call
21,533,154 Ops/sec
Initial Proxy Call
14,464,006 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()