Test name | Executions per second |
---|---|
floor | 5672463.0 Ops/sec |
~~ | 10559853.0 Ops/sec |
>> 0 | 8999860.0 Ops/sec |
| 0 | 10969174.0 Ops/sec |
<< 0 | 10957882.0 Ops/sec |
& 0xFFFFFFFFFFFF | 10277050.0 Ops/sec |
^ 0x000000000000 | 10497498.0 Ops/sec |
Math.trunc() | 6020801.0 Ops/sec |
x - (x % 1) | 6747465.0 Ops/sec |
parseInt() | 5828084.5 Ops/sec |