Test name | Executions per second |
---|---|
floor | 2099999.2 Ops/sec |
~~ | 3589235.8 Ops/sec |
>> 0 | 3563332.8 Ops/sec |
| 0 | 3578795.8 Ops/sec |
<< 0 | 3231865.2 Ops/sec |
& 0xFFFFFFFFFFFF | 3431983.2 Ops/sec |
^ 0x000000000000 | 3485541.5 Ops/sec |
Math.trunc() | 2058487.6 Ops/sec |
x - (x % 1) | 2462341.5 Ops/sec |
parseInt() | 2082837.8 Ops/sec |