Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Linux
Desktop
one year ago
Benchmark.js
Just instantiate new array
54K/s
Set length to zero
52K/s
Splice
47K/s
Pop all values
37K/s
View exact numbers
Test name Executions per second
Just instantiate new array 54,120 Ops/sec
Set length to zero 51,936 Ops/sec
Splice 47,020 Ops/sec
Pop all values 37,242 Ops/sec
Tests: