Test name | Executions per second |
---|---|
floor | 8265888.0 Ops/sec |
~~ | 13670700.0 Ops/sec |
>> 0 | 13654740.0 Ops/sec |
| 0 | 13666055.0 Ops/sec |
<< 0 | 13715261.0 Ops/sec |
& 0xFFFFFFFFFFFF | 13693788.0 Ops/sec |
^ 0x000000000000 | 13660007.0 Ops/sec |
Math.trunc() | 8368605.0 Ops/sec |
x - (x % 1) | 7901980.0 Ops/sec |
parseInt() | 8199449.5 Ops/sec |