Test name | Executions per second |
---|---|
floor | 6427687.0 Ops/sec |
~~ | 11522357.0 Ops/sec |
>> 0 | 11672066.0 Ops/sec |
| 0 | 11621221.0 Ops/sec |
<< 0 | 11567701.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11531281.0 Ops/sec |
^ 0x000000000000 | 11480437.0 Ops/sec |
Math.trunc() | 6510540.5 Ops/sec |
x - (x % 1) | 7672110.5 Ops/sec |
parseInt() | 6381507.0 Ops/sec |