Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
sdfjgfjdfghjsrfgasergasdhfhgfdjkfghjkfghk
(version: 0)
Comparing performance of:
createRandomKey vs crypto uuid vs crypto random values vs math random
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
window.createRandomKey = () => `${Math.floor(Math.random() * 100000)}${Math.floor(Math.random() * 100000)}${Date.now()}`;
Tests:
createRandomKey
createRandomKey()
crypto uuid
crypto.randomUUID()
crypto random values
crypto.getRandomValues(new Uint32Array(10))
math random
Math.random()
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
createRandomKey
crypto uuid
crypto random values
math random
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!
Related benchmarks:
Array.prototype.sort (utc date property vs epoch date simulation property)
fight to the death - for loop vs chained (10) - 2
fight to the death - for loop vs chained (1000)
fight to the death - for loop vs chained (100,000)
fight to the death - for loop vs chained (Dr Vacant - 1,000,000)
Comments
Confirm delete:
Do you really want to delete benchmark?