Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
math random vs uuid v4
(version: 0)
Comparing performance of:
Math.random().toString(36).substring(2, 15) vs exports.uuid()
Created:
2 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src=" https://cdn.jsdelivr.net/npm/uuidv4@6.2.13/build/lib/uuidv4.min.js "></script>
Tests:
Math.random().toString(36).substring(2, 15)
Math.random().toString(36).substring(2, 15)
exports.uuid()
uuid()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Math.random().toString(36).substring(2, 15)
exports.uuid()
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?