Test name | Executions per second |
---|---|
floor | 2667502.2 Ops/sec |
~~ | 5014732.5 Ops/sec |
>> 0 | 4982266.5 Ops/sec |
| 0 | 5048321.5 Ops/sec |
<< 0 | 4979058.5 Ops/sec |
& 0xFFFFFFFFFFFF | 4976253.5 Ops/sec |
^ 0x000000000000 | 5024631.5 Ops/sec |
Math.trunc() | 2777492.5 Ops/sec |
x - (x % 1) | 3396039.8 Ops/sec |
parseInt() | 2786603.5 Ops/sec |