Test case name | Result |
---|---|
Math.ceil(test) | |
~~test | |
Math.floor(test) | |
Math.floor(test) + 1 (CEIL) | |
FAST CEIL |
Test name | Executions per second |
---|---|
Math.ceil(test) | 9427078.0 Ops/sec |
~~test | 24615530.0 Ops/sec |
Math.floor(test) | 9470258.0 Ops/sec |
Math.floor(test) + 1 (CEIL) | 9357318.0 Ops/sec |
FAST CEIL | 24715160.0 Ops/sec |