Simple Split vs Match
2 years ago
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.83 Safari/537.36
Test name |
Executions per second |
Matching, with groups |
6370916.0 Ops/sec |
Split |
3976965.0 Ops/sec |
Matching, with look behind |
6634245.0 Ops/sec |
Tests:
-
Matching, with groups
-
Split
-
Matching, with look behind
Open this result on MeasureThat.net