Test name | Executions per second |
---|---|
floor | 3204924.2 Ops/sec |
~~ | 5946545.5 Ops/sec |
>> 0 | 5964991.5 Ops/sec |
| 0 | 5948433.5 Ops/sec |
<< 0 | 5856864.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6042441.0 Ops/sec |
^ 0x000000000000 | 5640774.0 Ops/sec |
Math.trunc() | 3205147.8 Ops/sec |
x - (x % 1) | 4102903.2 Ops/sec |
parseInt() | 3166233.8 Ops/sec |