Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
дед наебал
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 16
Operating system:
iOS 16.6
Device Platform:
Mobile
Date tested:
2 years ago
Test name
Executions per second
indexed
3423.0 Ops/sec
destruct
1086.5 Ops/sec
spread
1534.9 Ops/sec
Tests:
indexed
function add(...rest) { return rest.reduce((a,b) => a + b, 0); } var arr = Array.from({length: 10000}, (_, i) => ([i, i+1, i+2, i+3, i+4])) var xs = arr.map(nums => add(nums[0], nums[1], nums[2], nums[3], nums[4]))
destruct
function add(...rest) { return rest.reduce((a,b) => a + b, 0); } var arr = Array.from({length: 10000}, (_, i) => ([i, i+1, i+2, i+3, i+4])) var xs = arr.map(([a,b,c,d,e]) => add(a,b,c,d,e))
spread
function add(...rest) { return rest.reduce((a,b) => a + b, 0); } var arr = Array.from({length: 10000}, (_, i) => ([i, i+1, i+2, i+3, i+4])) var xs = arr.map(nums => add(...nums))