Test name | Executions per second |
---|---|
floor | 3267864.8 Ops/sec |
~~ | 6087260.5 Ops/sec |
>> 0 | 6121734.5 Ops/sec |
| 0 | 6085335.5 Ops/sec |
<< 0 | 6043384.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6133279.0 Ops/sec |
^ 0x000000000000 | 6079520.0 Ops/sec |
Math.trunc() | 3270360.2 Ops/sec |
x - (x % 1) | 4140183.0 Ops/sec |
parseInt() | 3248937.5 Ops/sec |