Test name | Executions per second |
---|---|
floor | 2989766.5 Ops/sec |
~~ | 5773875.5 Ops/sec |
>> 0 | 5790538.5 Ops/sec |
| 0 | 5808346.5 Ops/sec |
<< 0 | 5700032.5 Ops/sec |
& 0xFFFFFFFFFFFF | 5826022.5 Ops/sec |
^ 0x000000000000 | 5729904.0 Ops/sec |
Math.trunc() | 3000373.0 Ops/sec |
x - (x % 1) | 3861239.5 Ops/sec |
parseInt() | 2937377.5 Ops/sec |