Test name | Executions per second |
---|---|
floor | 5755829.0 Ops/sec |
~~ | 8344972.5 Ops/sec |
>> 0 | 9133308.0 Ops/sec |
| 0 | 9045462.0 Ops/sec |
<< 0 | 7237988.5 Ops/sec |
& 0xFFFFFFFFFFFF | 9118636.0 Ops/sec |
^ 0x000000000000 | 8929345.0 Ops/sec |
Math.trunc() | 5470936.5 Ops/sec |
x - (x % 1) | 5179965.5 Ops/sec |
parseInt() | 4570700.5 Ops/sec |