Test name | Executions per second |
---|---|
floor | 3293941.5 Ops/sec |
~~ | 6708411.5 Ops/sec |
>> 0 | 7055619.0 Ops/sec |
| 0 | 7226363.5 Ops/sec |
<< 0 | 6918286.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6917788.5 Ops/sec |
^ 0x000000000000 | 7114207.5 Ops/sec |
Math.trunc() | 3554710.2 Ops/sec |
x - (x % 1) | 4877162.0 Ops/sec |
parseInt() | 3782537.0 Ops/sec |