Replace vs Substring vs Substring hardcoded vs Slice vs Slice hardcoded| Test case name | Result |
|---|---|
| Replace | |
| Substring | |
| Substring hardcoded | |
| Slice | |
| Slice hardcoded |
| Test name | Executions per second |
|---|---|
| ✓ Slice | 1,380 Ops/sec |
| Substring | 977 Ops/sec |
| Substring hardcoded | 733 Ops/sec |
| Slice hardcoded | 729 Ops/sec |
| Replace | 143 Ops/sec |