Simple Split vs Match

one month 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
Script Preparation code:
  • Matching, with groups

  • Split

  • Matching, with look behind

Open this result on