Test name | Executions per second |
---|---|
floor | 3285475.0 Ops/sec |
~~ | 6032852.0 Ops/sec |
>> 0 | 6032436.0 Ops/sec |
| 0 | 6047907.0 Ops/sec |
<< 0 | 6032501.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6039361.5 Ops/sec |
^ 0x000000000000 | 6030092.5 Ops/sec |
Math.trunc() | 3283493.5 Ops/sec |
x - (x % 1) | 4162351.8 Ops/sec |
parseInt() | 3313339.5 Ops/sec |