Test name | Executions per second |
---|---|
floor | 4402226.5 Ops/sec |
~~ | 8060754.0 Ops/sec |
>> 0 | 8250110.0 Ops/sec |
| 0 | 8280395.5 Ops/sec |
<< 0 | 8158147.0 Ops/sec |
& 0xFFFFFFFFFFFF | 8277584.0 Ops/sec |
^ 0x000000000000 | 8184753.0 Ops/sec |
Math.trunc() | 4333179.0 Ops/sec |
x - (x % 1) | 5572225.0 Ops/sec |
parseInt() | 4125709.2 Ops/sec |