Math.random().toString(36).substring(2, 12) vs Date.now()| Test case name | Result |
|---|---|
| Math.random().toString(36).substring(2, 12) | |
| Date.now() |
| Test name | Executions per second |
|---|---|
| ✓ Date.now() | 28,089,888 Ops/sec |
| Math.random().toString(36).substring(2, 12) | 5,641,356 Ops/sec |