Test case name | Result |
---|---|
Round floating number using lodash round function | |
Round floating number using toFixed() | |
tofixed |
Test name | Executions per second |
---|---|
Round floating number using lodash round function | 1922.9 Ops/sec |
Round floating number using toFixed() | 314393.6 Ops/sec |
tofixed | 6166.4 Ops/sec |