Test name | Executions per second |
---|---|
floor | 6223112.0 Ops/sec |
~~ | 11809789.0 Ops/sec |
>> 0 | 11804834.0 Ops/sec |
| 0 | 11783471.0 Ops/sec |
<< 0 | 11805399.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11673476.0 Ops/sec |
^ 0x000000000000 | 11786846.0 Ops/sec |
Math.trunc() | 6216336.5 Ops/sec |
x - (x % 1) | 6526346.0 Ops/sec |
parseInt() | 6129981.5 Ops/sec |