Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
rest parameters vs arguments 4
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15
Browser:
Safari 26
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one month ago
Test name
Executions per second
rest arguments
18349802.0 Ops/sec
array parameter
22653242.0 Ops/sec
Script Preparation code:
function h1(...args) { return args.map((x)=>x) } function h2(args) { return args.map((x)=>x) }
Tests:
rest arguments
const els = h1("1","1","1","1","1","1","1","1","1");
array parameter
const els = h2(["1","1","1","1","1","1","1","1","1"]);