Test name | Executions per second |
---|---|
floor | 3540402.2 Ops/sec |
~~ | 6813459.0 Ops/sec |
>> 0 | 6785430.0 Ops/sec |
| 0 | 6849598.5 Ops/sec |
<< 0 | 6792935.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6802518.5 Ops/sec |
^ 0x000000000000 | 6822893.5 Ops/sec |
Math.trunc() | 3487093.0 Ops/sec |
x - (x % 1) | 4584543.0 Ops/sec |
parseInt() | 3494039.2 Ops/sec |