Math.random().toString(36).substring(2, 12) vs crypto.randomUUID()| Test case name | Result |
|---|---|
| Math.random().toString(36).substring(2, 12) | |
| crypto.randomUUID() |
| Test name | Executions per second |
|---|---|
| ✓ Math.random().toString(36).substring(2, 12) | 6,960,772 Ops/sec |
| crypto.randomUUID() | 1,029,833 Ops/sec |