Test name | Executions per second |
---|---|
floor | 3506336.8 Ops/sec |
~~ | 6393115.5 Ops/sec |
>> 0 | 6383653.0 Ops/sec |
| 0 | 6514622.0 Ops/sec |
<< 0 | 6434581.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6548028.0 Ops/sec |
^ 0x000000000000 | 6524056.0 Ops/sec |
Math.trunc() | 3650447.8 Ops/sec |
x - (x % 1) | 4523510.0 Ops/sec |
parseInt() | 3671411.2 Ops/sec |