Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Math random UUID vs crypto UUID
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0
Browser:
Firefox 149
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
3 months ago
math.random
6.0M/s
crypto uuid
3.9M/s
View exact numbers
Test name
Executions per second
✓
math.random
6,039,975 Ops/sec
crypto uuid
3,879,981 Ops/sec
Script Preparation code:
var uuid; var broofa = () => { return Math.random().toString() + Math.random().toString() }
Tests:
math.random
uuid = broofa()
crypto uuid
uuid = crypto.randomUUID()