Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
Array.from 20 948334.4 Ops/sec
Spread 20 1125966.9 Ops/sec
Array.from 100 308981.0 Ops/sec
Spread 100 310785.2 Ops/sec
Array.from 1000 30765.4 Ops/sec
Spread 1000 31345.8 Ops/sec
Tests:
  • Array.from 20

  • Spread 20

  • Array.from 100

  • Spread 100

  • Array.from 1000

  • Spread 1000