Test case name | Result |
---|---|
Math.floor(test) | |
Math.floor(test) + 1 | |
~~test | |
~~test + 1 | |
Math.ceil(test) |
Test name | Executions per second |
---|---|
Math.floor(test) | 4512597.0 Ops/sec |
Math.floor(test) + 1 | 4727551.0 Ops/sec |
~~test | 13799350.0 Ops/sec |
~~test + 1 | 13742780.0 Ops/sec |
Math.ceil(test) | 4604480.0 Ops/sec |