Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Math.random vs crypto.getRandomValues vs uuid
Fast and quick test
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:144.0) Gecko/20100101 Firefox/144.0
Browser:
Firefox 144
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
10 months ago
Math.random
1960.6M/s
Uuid
5.1M/s
crypto API
2.6M/s
View exact numbers
Test name
Executions per second
✓
Math.random
1,960,551,296 Ops/sec
Uuid
5,086,312 Ops/sec
crypto API
2,560,880 Ops/sec
Tests:
Math.random
Math.random()
crypto API
crypto.getRandomValues(new Uint8Array(1))
Uuid
crypto.randomUUID()