Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
Chrome Mobile 125
Android
Mobile
2 years ago
Benchmark.js
Set length to zero
9K/s
Just instantiate new array
9K/s
Splice
8K/s
Pop all values
5K/s
View exact numbers
Test name Executions per second
Set length to zero 9,293 Ops/sec
Just instantiate new array 9,228 Ops/sec
Splice 7,857 Ops/sec
Pop all values 5,380 Ops/sec
Tests: