Math.random vs crypto API vs UuidFastest: Math.random (128.6x faster)
95,520,136 ops/sec
794,764 ops/sec
742,698 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Math.random | |
| crypto API | |
| Uuid |
| Test name | Executions per second |
|---|---|
| ✓ Math.random | 428,968,832 Ops/sec |
| Uuid | 11,395,888 Ops/sec |
| crypto API | 6,261,024 Ops/sec |