Test name | Executions per second |
---|---|
floor | 3910397.0 Ops/sec |
~~ | 7378062.5 Ops/sec |
>> 0 | 7413153.5 Ops/sec |
| 0 | 7329842.0 Ops/sec |
<< 0 | 7457059.5 Ops/sec |
& 0xFFFFFFFFFFFF | 7341958.5 Ops/sec |
^ 0x000000000000 | 7266147.0 Ops/sec |
Math.trunc() | 3999647.8 Ops/sec |
x - (x % 1) | 4969793.5 Ops/sec |
parseInt() | 3897656.5 Ops/sec |