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:
one year ago
by:
Guest
Go 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:
one year 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
Split
20.0M/s
Match
14.8M/s
View exact numbers
Test name
Executions per second
✓
Split
20,035,004 Ops/sec
Match
14,767,118 Ops/sec
Related benchmarks
String in array
UUIDv4 + version string splitting options
Comments
Confirm delete:
Do you really want to delete benchmark?