Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
UUIDv4 + version string splitting options
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Browser:
Firefox 139
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
11 months ago
Test name
Executions per second
split
12040816.0 Ops/sec
match
10762219.0 Ops/sec
slice by 36 (UUIDv4)
295005536.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const string = "719cd2c5-f05c-40b2-9ca6-6b889d22e069:v23";
Tests:
split
const [id, v] = string.split(":");
match
const [,id, v] = string.match(/^([0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}):v(\d+)$/i);
slice by 36 (UUIDv4)
const id = string.slice(0, 36); const v = string.slice(38);