Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Random string
(version: 1)
Comparing performance of:
Math.random().toString(36).substring(2, 12) vs crypto.randomUUID()
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
Math.random().toString(36).substring(2, 12)
Math.random().toString(36).substring(2, 12)
crypto.randomUUID()
crypto.randomUUID()
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, 12)
crypto.randomUUID()
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
11 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser/OS:
Chrome 137 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Math.random().toString(36).substring(2, 12)
6960772.5 Ops/sec
crypto.randomUUID()
1029832.8 Ops/sec
Related benchmarks:
test ternário marco
asdfq324fqwf23fasdf
test math random
Math.random() performance
rando-110200202
UUID Generation compare
Math random UUID vs crypto UUID
Convert Number to String random
Math.random vs crypto.getRandomValues (2) vs RandomUUID
Comments
Confirm delete:
Do you really want to delete benchmark?