Test name | Executions per second |
---|---|
floor | 4007498.2 Ops/sec |
~~ | 7253949.0 Ops/sec |
>> 0 | 7509856.0 Ops/sec |
| 0 | 7292003.0 Ops/sec |
<< 0 | 7469878.5 Ops/sec |
& 0xFFFFFFFFFFFF | 7421919.5 Ops/sec |
^ 0x000000000000 | 7279922.0 Ops/sec |
Math.trunc() | 4237365.5 Ops/sec |
x - (x % 1) | 4868490.0 Ops/sec |
parseInt() | 4174799.0 Ops/sec |