Test name | Executions per second |
---|---|
floor | 566121984.0 Ops/sec |
~~ | 516355008.0 Ops/sec |
>> 0 | 519849248.0 Ops/sec |
| 0 | 520007712.0 Ops/sec |
<< 0 | 523617856.0 Ops/sec |
& 0xFFFFFFFFFFFF | 530961440.0 Ops/sec |
^ 0x000000000000 | 518707296.0 Ops/sec |
Math.trunc() | 558199552.0 Ops/sec |
x - (x % 1) | 541116416.0 Ops/sec |
parseInt() | 25538854.0 Ops/sec |