ParseInt vs Bitwise invert2 vs Bitwise conditional invert2 vs Number.toFixed| Test case name | Result |
|---|---|
| ParseInt | |
| Bitwise invert2 | |
| Bitwise conditional invert2 | |
| Number.toFixed |
| Test name | Executions per second |
|---|---|
| ✓ ParseInt | 617,981,504 Ops/sec |
| Bitwise invert2 | 572,627,648 Ops/sec |
| Bitwise conditional invert2 | 500,059,936 Ops/sec |
| Number.toFixed | 15,107,920 Ops/sec |