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 (Android 13; Mobile; rv:148.0) Gecko/148.0 Firefox/148.0
Browser:
Firefox Mobile 148
Operating system:
Android
Device Platform:
Mobile
Date tested:
one month ago
Test name
Executions per second
Tuple
375.5 Ops/sec
Object
412.2 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() }