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
Set length to zero
6K/s
Just instantiate new array
6K/s
Splice
5K/s
Pop all values
4K/s
View exact numbers
Test name Executions per second
Set length to zero 5,723 Ops/sec
Just instantiate new array 5,659 Ops/sec
Splice 4,990 Ops/sec
Pop all values 3,585 Ops/sec
Tests: