Regex vs Split and JoinFastest: Split and Join (2.0x faster)
437,906 ops/sec
219,358 ops/sec
Fastest: Split and Join (8.9x faster)
799,617 ops/sec
89,988 ops/sec
Fastest: Regex (424.2x faster)
160,042,272 ops/sec
377,305 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Regex | |
| Split and Join |
| Test name | Executions per second |
|---|---|
| ✓ Split and Join | 697,309 Ops/sec |
| Regex | 71,692 Ops/sec |