Test name | Executions per second |
---|---|
floor | 2656282.8 Ops/sec |
~~ | 4875694.0 Ops/sec |
>> 0 | 4960950.0 Ops/sec |
| 0 | 4925718.0 Ops/sec |
<< 0 | 4968525.0 Ops/sec |
& 0xFFFFFFFFFFFF | 4952039.5 Ops/sec |
^ 0x000000000000 | 4932585.0 Ops/sec |
Math.trunc() | 2667409.5 Ops/sec |
x - (x % 1) | 3385423.0 Ops/sec |
parseInt() | 2623041.8 Ops/sec |