Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
list push vs splice into the end of array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
append
4628954.5 Ops/sec
splice
3188326.0 Ops/sec
concat
2963192.0 Ops/sec
Script Preparation code:
l = 123;
Tests:
append
a = Array(l); a.push(1, 2, 3, 4, 5, 6);
splice
a = Array(l); a.splice(l,0,1,2,3,4,5,6);
concat
a = Array(l); a = a.concat([1,2,3,4,5,6]);