Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
Just instantiate new array
47K/s
Set length to zero
47K/s
Splice
45K/s
Pop all values
25K/s
View exact numbers
Test name Executions per second
Just instantiate new array 47,423 Ops/sec
Set length to zero 47,168 Ops/sec
Splice 44,793 Ops/sec
Pop all values 25,294 Ops/sec
Tests: