Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Chrome OS 14541.0.0
Desktop
3 months ago
Test name Executions per second
new Array().fill() 53103.1 Ops/sec
Array.from() 15240.6 Ops/sec
[...Array()] 51991.4 Ops/sec
Script Preparation code:
Tests:
  • new Array().fill()

  • Array.from()

  • [...Array()]