Number.toString(16) vs Number.toString(36)Fastest: Number.toString(36) (1.2x faster)
1,835 ops/sec
1,468 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Number.toString(16) | |
| Number.toString(36) |
| Test name | Executions per second |
|---|---|
| ✓ Number.toString(36) | 1,116 Ops/sec |
| Number.toString(16) | 931 Ops/sec |