Test name | Executions per second |
---|---|
floor | 4105366.2 Ops/sec |
~~ | 7575880.0 Ops/sec |
>> 0 | 7567064.5 Ops/sec |
| 0 | 7493494.5 Ops/sec |
<< 0 | 7482842.5 Ops/sec |
& 0xFFFFFFFFFFFF | 7547102.5 Ops/sec |
^ 0x000000000000 | 7516143.5 Ops/sec |
Math.trunc() | 4077427.2 Ops/sec |
x - (x % 1) | 5065991.0 Ops/sec |
parseInt() | 4069000.8 Ops/sec |