Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
Chrome Mobile 126
Android
Mobile
2 years ago
Benchmark.js
Just instantiate new array
18K/s
Splice
17K/s
Set length to zero
15K/s
Pop all values
10K/s
View exact numbers
Test name Executions per second
Just instantiate new array 17,685 Ops/sec
Splice 16,515 Ops/sec
Set length to zero 15,027 Ops/sec
Pop all values 9,548 Ops/sec
Tests: