Test name | Executions per second |
---|---|
floor | 5525310.0 Ops/sec |
~~ | 8543164.0 Ops/sec |
>> 0 | 8463518.0 Ops/sec |
| 0 | 8239861.0 Ops/sec |
<< 0 | 8109767.5 Ops/sec |
& 0xFFFFFFFFFFFF | 8046047.5 Ops/sec |
^ 0x000000000000 | 8039978.0 Ops/sec |
Math.trunc() | 4932540.5 Ops/sec |
x - (x % 1) | 4762514.0 Ops/sec |
parseInt() | 3412963.5 Ops/sec |