Test name | Executions per second |
---|---|
floor | 3090235.8 Ops/sec |
~~ | 5742202.5 Ops/sec |
>> 0 | 5799948.5 Ops/sec |
| 0 | 5790150.0 Ops/sec |
<< 0 | 5862193.5 Ops/sec |
& 0xFFFFFFFFFFFF | 5877853.5 Ops/sec |
^ 0x000000000000 | 5938854.5 Ops/sec |
Math.trunc() | 3150232.8 Ops/sec |
x - (x % 1) | 3774438.5 Ops/sec |
parseInt() | 3139645.2 Ops/sec |