Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Math.random vs crypto.getRandom Alberto
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/133.0 Mobile/15E148 Safari/605.1.15
Browser:
Mobile Safari 18
Operating system:
iOS 18.2
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Math.random()
326548352.0 Ops/sec
crypto.getRandomValues()
3739616.0 Ops/sec
Tests:
Math.random()
Math.floor(Math.random() * 4294967296);
crypto.getRandomValues()
crypto.getRandomValues(new Uint32Array(1))[0]