Test name | Executions per second |
---|---|
floor | 2467364.2 Ops/sec |
~~ | 4497699.0 Ops/sec |
>> 0 | 4445838.0 Ops/sec |
| 0 | 4973183.5 Ops/sec |
<< 0 | 6287926.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6189057.5 Ops/sec |
^ 0x000000000000 | 6150887.5 Ops/sec |
Math.trunc() | 3511775.0 Ops/sec |
x - (x % 1) | 4016929.2 Ops/sec |
parseInt() | 2813284.8 Ops/sec |