Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0
Chrome 128
Windows
Desktop
one year ago
Benchmark.js
Just instantiate new array
28K/s
Set length to zero
27K/s
Splice
25K/s
Pop all values
17K/s
View exact numbers
Test name Executions per second
Just instantiate new array 27,845 Ops/sec
Set length to zero 27,375 Ops/sec
Splice 25,425 Ops/sec
Pop all values 16,756 Ops/sec
Tests: