Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
Just instantiate new array
48K/s
Set length to zero
48K/s
Splice
46K/s
Pop all values
26K/s
View exact numbers
Test name Executions per second
Just instantiate new array 48,258 Ops/sec
Set length to zero 47,843 Ops/sec
Splice 45,877 Ops/sec
Pop all values 25,666 Ops/sec
Tests: