parseFloat() vs regexFastest: regex (1.3x faster)
3,761,475 ops/sec
2,868,881 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| parseFloat() | |
| regex |
| Test name | Executions per second |
|---|---|
| ✓ parseFloat() | 25,606,124 Ops/sec |
| regex | 15,921,439 Ops/sec |