Test name | Executions per second |
---|---|
floor | 7554832.0 Ops/sec |
~~ | 13317465.0 Ops/sec |
>> 0 | 13406114.0 Ops/sec |
| 0 | 13310665.0 Ops/sec |
<< 0 | 13438995.0 Ops/sec |
& 0xFFFFFFFFFFFF | 12695292.0 Ops/sec |
^ 0x000000000000 | 13376848.0 Ops/sec |
Math.trunc() | 7603366.5 Ops/sec |
x - (x % 1) | 8621227.0 Ops/sec |
parseInt() | 7554266.0 Ops/sec |