Test case name | Result |
---|---|
(Math.round(heading * 10) / 10).toFixed(1) | |
(heading).toFixed(1) | |
(Math.round(999 * 10) / 10).toString() |
Test name | Executions per second |
---|---|
(Math.round(heading * 10) / 10).toFixed(1) | 1754439.0 Ops/sec |
(heading).toFixed(1) | 2716752.0 Ops/sec |
(Math.round(999 * 10) / 10).toString() | 5437723.0 Ops/sec |