Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
concat vs spread test in js
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser:
Chrome 126
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
spread test
23427534.0 Ops/sec
concat test
14462667.0 Ops/sec
Tests:
spread test
let input1 = [1,2,3,4,45,6,7,7,8,9,0] let input2 = [11,22,33,44,55,66,77,88,99,111,123,234,56] const spread = [...input1, ...input2]
concat test
let input1 = [1,2,3,4,45,6,7,7,8,9,0] let input2 = [11,22,33,44,55,66,77,88,99,111,123,234,56] const concat = input1.concat(input2)