Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138
Mac OS X 10.15
Desktop
one year ago
Benchmark.js
Just instantiate new array
27K/s
Set length to zero
24K/s
Splice
21K/s
Pop all values
12K/s
View exact numbers
Test name Executions per second
Just instantiate new array 26,893 Ops/sec
Set length to zero 24,281 Ops/sec
Splice 20,801 Ops/sec
Pop all values 11,725 Ops/sec
Tests: