Solution 1 (Exponential notation) vs Solution 2 (Number.EPSILON) vs Solution 3 (Double rounding) vs Solution 4 (Double rounding v2)| Test case name | Result |
|---|---|
| Solution 1 (Exponential notation) | |
| Solution 2 (Number.EPSILON) | |
| Solution 3 (Double rounding) | |
| Solution 4 (Double rounding v2) |
| Test name | Executions per second |
|---|---|
| ✓ Solution 2 (Number.EPSILON) | 6,144,224 Ops/sec |
| Solution 3 (Double rounding) | 86,166 Ops/sec |
| Solution 4 (Double rounding v2) | 70,302 Ops/sec |
| Solution 1 (Exponential notation) | 69,566 Ops/sec |