Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
2 years ago
Benchmark.js
Just instantiate new array
45K/s
Set length to zero
43K/s
Splice
41K/s
Pop all values
25K/s
View exact numbers
Test name Executions per second
Just instantiate new array 44,550 Ops/sec
Set length to zero 43,197 Ops/sec
Splice 41,070 Ops/sec
Pop all values 24,778 Ops/sec
Tests: