Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
Just instantiate new array
42K/s
Set length to zero
42K/s
Splice
40K/s
Pop all values
22K/s
View exact numbers
Test name Executions per second
Just instantiate new array 41,741 Ops/sec
Set length to zero 41,646 Ops/sec
Splice 39,804 Ops/sec
Pop all values 21,810 Ops/sec
Tests: