Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5
Safari 11
Mac OS X 10.13.1
Other
6 years ago
Test name Executions per second
slice 6555295.0 Ops/sec
spread operator 7654046.5 Ops/sec
concat into empty array 6479147.0 Ops/sec
Array.from 1389257.0 Ops/sec
Script Preparation code:
Tests:
  • slice

  • spread operator

  • concat into empty array

  • Array.from


;