Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
Chrome 72
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
immutable with concat 488.4 Ops/sec
mutation with splice + spread 21907.6 Ops/sec
mutation with splice into preallocated array 20291.4 Ops/sec
mutation with loop-assign 250154.8 Ops/sec
Tests:
  • immutable with concat

  • mutation with splice + spread

  • mutation with splice into preallocated array

  • mutation with loop-assign