Symbol vs Number vs StringFastest: String (7.0x faster)
157,590,560 ops/sec
153,182,784 ops/sec
22,565,316 ops/sec
Fastest: String (99.4x faster)
1,333,072,896 ops/sec
1,310,110,976 ops/sec
13,415,491 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Symbol | |
| Number | |
| String |
| Test name | Executions per second |
|---|---|
| ✓ String | 189,619,152 Ops/sec |
| Number | 179,178,176 Ops/sec |
| Symbol | 33,009,098 Ops/sec |