Test name | Executions per second |
---|---|
floor | 3160500.2 Ops/sec |
~~ | 6245992.5 Ops/sec |
>> 0 | 6174086.0 Ops/sec |
| 0 | 6234163.0 Ops/sec |
<< 0 | 6347851.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6295010.0 Ops/sec |
^ 0x000000000000 | 6360490.0 Ops/sec |
Math.trunc() | 3193959.2 Ops/sec |
x - (x % 1) | 4285723.0 Ops/sec |
parseInt() | 3150594.2 Ops/sec |