Test name | Executions per second |
---|---|
floor | 2840809.2 Ops/sec |
~~ | 5245887.0 Ops/sec |
>> 0 | 5332299.5 Ops/sec |
| 0 | 5272103.0 Ops/sec |
<< 0 | 5072504.5 Ops/sec |
& 0xFFFFFFFFFFFF | 5091657.5 Ops/sec |
^ 0x000000000000 | 5507614.0 Ops/sec |
Math.trunc() | 2887479.2 Ops/sec |
x - (x % 1) | 3697453.0 Ops/sec |
parseInt() | 2551435.5 Ops/sec |