Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Rest parameters vs array parameter
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 16; 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
Rest
10519207.0 Ops/sec
Array
10669770.0 Ops/sec
Tests:
Rest
const f = (a, ...b) => a.concat(b.map(String)) const r = f([0], 1, 2, 3, 4, 5);
Array
const f = (a, b) => a.concat(b.map(String)) const r = f([0], [1, 2, 3, 4, 5]);