Test name | Executions per second |
---|---|
floor | 2161022.2 Ops/sec |
~~ | 3497738.8 Ops/sec |
>> 0 | 3720427.2 Ops/sec |
| 0 | 3801134.5 Ops/sec |
<< 0 | 3781311.2 Ops/sec |
& 0xFFFFFFFFFFFF | 3758997.2 Ops/sec |
^ 0x000000000000 | 3868672.0 Ops/sec |
Math.trunc() | 2215912.8 Ops/sec |
x - (x % 1) | 2695828.5 Ops/sec |
parseInt() | 2196836.0 Ops/sec |