Test name | Executions per second |
---|---|
floor | 4086351.0 Ops/sec |
~~ | 7682453.0 Ops/sec |
>> 0 | 7691609.5 Ops/sec |
| 0 | 7600447.0 Ops/sec |
<< 0 | 7563945.5 Ops/sec |
& 0xFFFFFFFFFFFF | 7644308.5 Ops/sec |
^ 0x000000000000 | 7541797.0 Ops/sec |
Math.trunc() | 4138260.2 Ops/sec |
x - (x % 1) | 5240850.5 Ops/sec |
parseInt() | 4230359.5 Ops/sec |