instantiate new regex vs use existing regex vs just make a regex vs just make a string| Test case name | Result |
|---|---|
| instantiate new regex | |
| use existing regex | |
| just make a regex | |
| just make a string |
| Test name | Executions per second |
|---|---|
| ✓ just make a regex | 168,466,000 Ops/sec |
| just make a string | 155,052,112 Ops/sec |
| instantiate new regex | 15,960,742 Ops/sec |
| use existing regex | 13,052,096 Ops/sec |