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 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
Browser:
Safari 17
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
spread test
2690963.2 Ops/sec
concat test
2321740.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)