Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Mac OS X 10.15.7
Desktop
8 months ago
Test name Executions per second
Array.from (100 elements) 6528417.0 Ops/sec
spreading (100 elements) 13146886.0 Ops/sec
Array.from (1000 elements) 2918782.8 Ops/sec
spreading (1000 elements) 3790140.0 Ops/sec
Array.from (10000 elements) 556983.9 Ops/sec
spreading (10000 elements) 566108.1 Ops/sec
Script Preparation code:
Tests:
  • Array.from (100 elements)

  • spreading (100 elements)

  • Array.from (1000 elements)

  • spreading (1000 elements)

  • Array.from (10000 elements)

  • spreading (10000 elements)


;