Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lm-Regex vs split
(version: 0)
Comparing performance of:
Regex vs Split and Join
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var str = 'fr-fr::12::123654'; var pattern = @"\w+\:\:(?<category>\d+)\:\:(?<prid>\d+)";
Tests:
Regex
int.Parse(Regex.Matches(str, pattern).Captures.Groups["prid"].Value);
Split and Join
int.Parse(str.Split("::")[2]);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Regex
Split and Join
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?