Test name | Executions per second |
---|---|
floor | 5689872.0 Ops/sec |
~~ | 10828425.0 Ops/sec |
>> 0 | 10816045.0 Ops/sec |
| 0 | 10816863.0 Ops/sec |
<< 0 | 10810699.0 Ops/sec |
& 0xFFFFFFFFFFFF | 10822970.0 Ops/sec |
^ 0x000000000000 | 10828327.0 Ops/sec |
Math.trunc() | 5696050.0 Ops/sec |
x - (x % 1) | 5663549.0 Ops/sec |
parseInt() | 5729240.5 Ops/sec |