Test name | Executions per second |
---|---|
floor | 2817472.8 Ops/sec |
~~ | 4765453.0 Ops/sec |
>> 0 | 4727635.0 Ops/sec |
| 0 | 4698070.0 Ops/sec |
<< 0 | 4701609.0 Ops/sec |
& 0xFFFFFFFFFFFF | 4646512.5 Ops/sec |
^ 0x000000000000 | 4714911.5 Ops/sec |
Math.trunc() | 2761242.2 Ops/sec |
x - (x % 1) | 3198677.2 Ops/sec |
parseInt() | 2540831.2 Ops/sec |