Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
Just instantiate new array
49K/s
Set length to zero
49K/s
Splice
47K/s
Pop all values
27K/s
View exact numbers
Test name Executions per second
Just instantiate new array 49,392 Ops/sec
Set length to zero 49,103 Ops/sec
Splice 47,280 Ops/sec
Pop all values 27,020 Ops/sec
Tests: