Test name | Executions per second |
---|---|
floor | 4665397.0 Ops/sec |
~~ | 8651243.0 Ops/sec |
>> 0 | 8687745.0 Ops/sec |
| 0 | 8729384.0 Ops/sec |
<< 0 | 8691887.0 Ops/sec |
& 0xFFFFFFFFFFFF | 8727241.0 Ops/sec |
^ 0x000000000000 | 8658898.0 Ops/sec |
Math.trunc() | 4694286.5 Ops/sec |
x - (x % 1) | 5971642.5 Ops/sec |
parseInt() | 4687897.0 Ops/sec |