spread array performance (vs slice, splice, concat)

one month ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
Test name Executions per second
Splice 33930020.0 Ops/sec
Slice 133336700.0 Ops/sec
Concat 90612580.0 Ops/sec
Spread 81721980.0 Ops/sec
Tests:
  • Splice

  • Slice

  • Concat

  • Spread

Open this result on MeasureThat.net