Test name | Executions per second |
---|---|
floor | 136851488.0 Ops/sec |
~~ | 138797248.0 Ops/sec |
>> 0 | 139727344.0 Ops/sec |
| 0 | 139558528.0 Ops/sec |
<< 0 | 139202304.0 Ops/sec |
& 0xFFFFFFFFFFFF | 139841904.0 Ops/sec |
^ 0x000000000000 | 139630016.0 Ops/sec |
Math.trunc() | 130048160.0 Ops/sec |
x - (x % 1) | 225568864.0 Ops/sec |
parseInt() | 129164504.0 Ops/sec |