Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Tuple versus Object for function return 01
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_5_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/141.0.7390.96 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 141
Operating system:
iOS 18.5.0
Device Platform:
Mobile
Date tested:
6 months ago
Test name
Executions per second
Tuple
3906.4 Ops/sec
Object
32082.8 Ops/sec
Script Preparation code:
var COUNT = 100000
Tests:
Tuple
function now() { return [5612356223, 3] } for(let i = 0; i < COUNT; i++) { let [a, b] = now() }
Object
function now() { return {a:5612356223, b:3} } for(let i = 0; i < COUNT; i++) { let {a, b} = now() }