Test name | Executions per second |
---|---|
floor | 4204232.5 Ops/sec |
~~ | 7328803.5 Ops/sec |
>> 0 | 7227842.0 Ops/sec |
| 0 | 7292438.0 Ops/sec |
<< 0 | 7390940.5 Ops/sec |
& 0xFFFFFFFFFFFF | 7379656.5 Ops/sec |
^ 0x000000000000 | 7881011.5 Ops/sec |
Math.trunc() | 4235084.5 Ops/sec |
x - (x % 1) | 4995618.0 Ops/sec |
parseInt() | 4091622.0 Ops/sec |