date.getTime() vs crypto.randomUUID()Fastest: date.getTime() (496.6x faster)
2,077,756 ops/sec
4,184 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| date.getTime() | |
| crypto.randomUUID() |
| Test name | Executions per second |
|---|---|
| ✓ date.getTime() | 3,447,517 Ops/sec |
| crypto.randomUUID() | 4,568 Ops/sec |