Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Linux
Desktop
one year ago
Benchmark.js
Just instantiate new array
15K/s
Set length to zero
14K/s
Splice
13K/s
Pop all values
10K/s
View exact numbers
Test name Executions per second
Just instantiate new array 14,578 Ops/sec
Set length to zero 13,993 Ops/sec
Splice 12,710 Ops/sec
Pop all values 9,773 Ops/sec
Tests: