Run details:
Mozilla/5.0 (Android 9; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0
Firefox 66
Android
Tablet
5 years ago
Test name Executions per second
immutable with concat 23.4 Ops/sec
mutation with splice + spread 951.9 Ops/sec
mutation with splice into preallocated array 1024.8 Ops/sec
mutation with loop-assign 24848.8 Ops/sec
Tests:
  • immutable with concat

  • mutation with splice + spread

  • mutation with splice into preallocated array

  • mutation with loop-assign