Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Whale/3.26.244.14 Safari/537.36
Chrome 124
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
Just instantiate new array
44K/s
Set length to zero
43K/s
Splice
38K/s
Pop all values
30K/s
View exact numbers
Test name Executions per second
Just instantiate new array 43,747 Ops/sec
Set length to zero 43,109 Ops/sec
Splice 38,332 Ops/sec
Pop all values 29,796 Ops/sec
Tests: