Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
String split vs Regex 02
(version: 0)
String split vs Regex
Comparing performance of:
string.split vs Regex
Created:
7 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var str = 'spotify:artist:3TVXtAsR1Inumwj472S9r4'
Tests:
string.split
str.split(':')[2]
Regex
str.split('spotify:artist:')[1]
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
string.split
Regex
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!
Related benchmarks:
String split vs Regex
str split vs regex replace
Split vs regexp
Regex vs Split Time
Comments
Confirm delete:
Do you really want to delete benchmark?