Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Math.random vs crypto.getRandomValues (2)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 138
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Math.random
75.7M/s
crypto.getRandomValues
932K/s
crypto.randomUUID
549K/s
View exact numbers
Test name
Executions per second
✓
Math.random
75,740,824 Ops/sec
crypto.getRandomValues
931,835 Ops/sec
crypto.randomUUID
549,424 Ops/sec
Script Preparation code:
var array = new Uint32Array(1)
Tests:
Math.random
Math.random()
crypto.randomUUID
crypto.randomUUID()
crypto.getRandomValues
crypto.getRandomValues(array)