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 |
|---|---|
| ✓ Substring | 995 Ops/sec |
| Slice | 994 Ops/sec |
| Substring hardcoded | 731 Ops/sec |
| Slice hardcoded | 723 Ops/sec |
| Replace | 146 Ops/sec |