Test name | Executions per second |
---|---|
floor | 5723614.5 Ops/sec |
~~ | 9751078.0 Ops/sec |
>> 0 | 9860451.0 Ops/sec |
| 0 | 9835473.0 Ops/sec |
<< 0 | 9725578.0 Ops/sec |
& 0xFFFFFFFFFFFF | 9762512.0 Ops/sec |
^ 0x000000000000 | 9792777.0 Ops/sec |
Math.trunc() | 5707920.0 Ops/sec |
x - (x % 1) | 6244633.5 Ops/sec |
parseInt() | 5686037.5 Ops/sec |