Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Linux
Desktop
2 years ago
Benchmark.js
Just instantiate new array
34K/s
Set length to zero
32K/s
Splice
24K/s
Pop all values
19K/s
View exact numbers
Test name Executions per second
Just instantiate new array 34,239 Ops/sec
Set length to zero 31,971 Ops/sec
Splice 23,680 Ops/sec
Pop all values 18,838 Ops/sec
Tests: