Test name | Executions per second |
---|---|
floor | 8450463.0 Ops/sec |
~~ | 15120042.0 Ops/sec |
>> 0 | 15159238.0 Ops/sec |
| 0 | 14992046.0 Ops/sec |
<< 0 | 14956363.0 Ops/sec |
& 0xFFFFFFFFFFFF | 14884479.0 Ops/sec |
^ 0x000000000000 | 14776810.0 Ops/sec |
Math.trunc() | 8263575.5 Ops/sec |
x - (x % 1) | 7824356.5 Ops/sec |
parseInt() | 8242207.0 Ops/sec |