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
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,410 Ops/sec
Set length to zero 47,158 Ops/sec
Splice 44,821 Ops/sec
Pop all values 25,306 Ops/sec
Tests: