Test name | Executions per second |
---|---|
floor | 3233256.2 Ops/sec |
~~ | 6363912.5 Ops/sec |
>> 0 | 6621987.0 Ops/sec |
| 0 | 6643276.0 Ops/sec |
<< 0 | 6615749.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6631967.0 Ops/sec |
^ 0x000000000000 | 6652741.0 Ops/sec |
Math.trunc() | 3167428.2 Ops/sec |
x - (x % 1) | 3992902.0 Ops/sec |
parseInt() | 2941514.0 Ops/sec |