Test name | Executions per second |
---|---|
floor | 4818466.5 Ops/sec |
~~ | 9139930.0 Ops/sec |
>> 0 | 9169447.0 Ops/sec |
| 0 | 9087617.0 Ops/sec |
<< 0 | 9134212.0 Ops/sec |
& 0xFFFFFFFFFFFF | 9215871.0 Ops/sec |
^ 0x000000000000 | 9212456.0 Ops/sec |
Math.trunc() | 4791121.5 Ops/sec |
x - (x % 1) | 5741228.5 Ops/sec |
parseInt() | 4764818.0 Ops/sec |