Test name | Executions per second |
---|---|
floor | 7085714.5 Ops/sec |
~~ | 13603686.0 Ops/sec |
>> 0 | 13680713.0 Ops/sec |
| 0 | 13701332.0 Ops/sec |
<< 0 | 13699623.0 Ops/sec |
& 0xFFFFFFFFFFFF | 13652075.0 Ops/sec |
^ 0x000000000000 | 13685545.0 Ops/sec |
Math.trunc() | 7166635.5 Ops/sec |
x - (x % 1) | 6815689.0 Ops/sec |
parseInt() | 7556070.0 Ops/sec |