Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array splice vs delete
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 15; Mobile; rv:136.0) Gecko/136.0 Firefox/136.0
Browser:
Firefox Mobile 136
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
delete
323325600.0 Ops/sec
splice
322777952.0 Ops/sec
Script Preparation code:
var array = [].fill(1,0,10000)
Tests:
delete
for(var x=0; x<array.length; x++){ delete array[x] }
splice
while(array.length - 3 > 0){ array.splice(2,1) }