Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
personal spread array performance (vs slice, splice, concat)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 131
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Spread
5K/s
Splice
3K/s
Slice
3K/s
Concat
3K/s
View exact numbers
Test name
Executions per second
✓
Spread
5,111 Ops/sec
Splice
3,445 Ops/sec
Slice
3,381 Ops/sec
Concat
3,288 Ops/sec
Tests:
Splice
const testArray = Array(20000).fill().map((_, idx) => idx); const newTestArray = testArray.splice(0);
Slice
const testArray = Array(20000).fill().map((_, idx) => idx); const newTestArray = testArray.slice();
Concat
const testArray = Array(20000).fill().map((_, idx) => idx); const newTestArray = testArray.concat();
Spread
const testArray = Array(20000).fill().map((_, idx) => idx); const newTestArray = [...testArray];