float multiply vs bigInt multiply vs float compare vs bigInt compare vs string compare vs float greater vs bigint greater vs string greater vs toString bigInt vs toString float vs toFloat bigInt vs toFloat stringFastest: toString float (2.7x faster)
11,768,862 ops/sec
6,952,352 ops/sec
6,931,774 ops/sec
6,848,756 ops/sec
6,758,680 ops/sec
6,728,144 ops/sec
6,725,612 ops/sec
6,612,867 ops/sec
6,579,450 ops/sec
6,310,714 ops/sec
4,522,710 ops/sec
4,439,634 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| float multiply | |
| bigInt multiply | |
| float compare | |
| bigInt compare | |
| string compare | |
| float greater | |
| bigint greater | |
| string greater | |
| toString bigInt | |
| toString float | |
| toFloat bigInt | |
| toFloat string |
| Test name | Executions per second |
|---|---|
| ✓ float multiply | 122,942,608 Ops/sec |
| bigInt compare | 122,861,680 Ops/sec |
| bigint greater | 122,146,944 Ops/sec |
| string greater | 120,198,248 Ops/sec |
| float compare | 116,626,992 Ops/sec |
| string compare | 115,880,024 Ops/sec |
| float greater | 115,866,088 Ops/sec |
| bigInt multiply | 114,065,144 Ops/sec |
| toString float | 70,153,432 Ops/sec |
| toFloat bigInt | 26,497,542 Ops/sec |
| toString bigInt | 15,798,475 Ops/sec |
| toFloat string | 11,336,580 Ops/sec |