instantiate new regex vs use existing regex13,144,718 ops/sec
12,291,778 ops/sec
27,980,926 ops/sec
27,798,368 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| instantiate new regex | |
| use existing regex |
| Test name | Executions per second |
|---|---|
| ✓ use existing regex | 25,807,870 Ops/sec |
| instantiate new regex | 25,318,282 Ops/sec |