Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
UUIDv4 + version string splitting
(version: 1)
Comparing performance of:
Split vs Match
Created:
11 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const string = "719cd2c5-f05c-40b2-9ca6-6b889d22e069::v23"
Tests:
Split
string.split("::")
Match
string.match(/^(.+)::v(\d+)$/)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Split
Match
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
11 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Browser/OS:
Firefox 139 on Mac OS X 10.15
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Split
20035004.0 Ops/sec
Match
14767118.0 Ops/sec
Related benchmarks:
String in array
String in array
match vs split
Split string return first part fork
regex vs split lucas ribeiro
.split(" ") vs .split(/\s+/)
occurences is string
str.match / str.split
UUIDv4 + version string splitting options
Comments
Confirm delete:
Do you really want to delete benchmark?