Test case name | Result |
---|---|
immutable with concat | |
mutation with splice + spread | |
mutation with splice into preallocated array | |
mutation with loop-assign |
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 |