Test name | Executions per second |
---|---|
floor | 5534525.0 Ops/sec |
~~ | 10433069.0 Ops/sec |
>> 0 | 10447100.0 Ops/sec |
| 0 | 10436661.0 Ops/sec |
<< 0 | 10412986.0 Ops/sec |
& 0xFFFFFFFFFFFF | 10463281.0 Ops/sec |
^ 0x000000000000 | 10548726.0 Ops/sec |
Math.trunc() | 5568686.5 Ops/sec |
x - (x % 1) | 6785187.5 Ops/sec |
parseInt() | 5476817.0 Ops/sec |