parseInt vs toFixed vs Tilde vs Bitwise vs Math.round vs Math.trunc| Test case name | Result |
|---|---|
| parseInt | |
| toFixed | |
| Tilde | |
| Bitwise | |
| Math.round | |
| Math.trunc |
| Test name | Executions per second |
|---|---|
| ✓ Math.round | 36 Ops/sec |
| Bitwise | 35 Ops/sec |
| Math.trunc | 35 Ops/sec |
| parseInt | 35 Ops/sec |
| Tilde | 31 Ops/sec |
| toFixed | 31 Ops/sec |