Test name | Executions per second |
---|---|
floor | 241793664.0 Ops/sec |
~~ | 240813856.0 Ops/sec |
>> 0 | 241487504.0 Ops/sec |
| 0 | 241950160.0 Ops/sec |
<< 0 | 242078800.0 Ops/sec |
& 0xFFFFFFFFFFFF | 241656144.0 Ops/sec |
^ 0x000000000000 | 242044352.0 Ops/sec |
Math.trunc() | 242895472.0 Ops/sec |
x - (x % 1) | 586720000.0 Ops/sec |
parseInt() | 243751440.0 Ops/sec |