Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Mac OS X 10.15
Desktop
2 years ago
Benchmark.js
Just instantiate new array
53K/s
Splice
49K/s
Set length to zero
47K/s
Pop all values
27K/s
View exact numbers
Test name Executions per second
Just instantiate new array 52,787 Ops/sec
Splice 49,255 Ops/sec
Set length to zero 46,960 Ops/sec
Pop all values 27,175 Ops/sec
Tests: