Test name | Executions per second |
---|---|
toFixed(2) | 6315859.5 Ops/sec |
toPrecision(2).toString() | 5938405.5 Ops/sec |
(Math.round(*100)/100).toString() | 5750176.0 Ops/sec |
(Math.round(*100) * 0.01).toString() | 5968852.5 Ops/sec |
customRound(*100) * 0.01.toString() | 8328954.5 Ops/sec |