Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
spread vs individual
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Browser:
Firefox 122
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
spread
27.7 Ops/sec
individual
25.9 Ops/sec
Script Preparation code:
var data = [1, 2, 3, 4, 5, 6] function fn(a1, a2, a3, a4, a5, a6) { console.log(a1 + a2 + a3 + a4 + a5 + a6) }
Tests:
spread
for (let i = 0; i < 9999; ++i) { fn(...data); }
individual
for (let i = 0; i < 9999; ++i) { fn(data[0], data[1], data[2], data[3], data[4], data[5]); }