Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36
Chrome Mobile 136
Android
Mobile
one year ago
Benchmark.js
Just instantiate new array
6K/s
Set length to zero
6K/s
Splice
5K/s
Pop all values
4K/s
View exact numbers
Test name Executions per second
Just instantiate new array 5,919 Ops/sec
Set length to zero 5,745 Ops/sec
Splice 5,233 Ops/sec
Pop all values 3,688 Ops/sec
Tests: