Test name | Executions per second |
---|---|
floor | 7177610.0 Ops/sec |
~~ | 11875275.0 Ops/sec |
>> 0 | 11858520.0 Ops/sec |
| 0 | 11914106.0 Ops/sec |
<< 0 | 11866733.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11891621.0 Ops/sec |
^ 0x000000000000 | 11886586.0 Ops/sec |
Math.trunc() | 7164545.0 Ops/sec |
x - (x % 1) | 6800037.5 Ops/sec |
parseInt() | 5817737.0 Ops/sec |