Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36
Chrome 55
Fedora
Other
8 years ago
Test name Executions per second
Array from 32985804.0 Ops/sec
Array loop 43564924.0 Ops/sec
Array(length).fill 48314252.0 Ops/sec
Script Preparation code:
Tests:
  • Array from

  • Array loop

  • Array(length).fill