Test name | Executions per second |
---|---|
floor | 4326418.5 Ops/sec |
~~ | 8382395.5 Ops/sec |
>> 0 | 8341403.0 Ops/sec |
| 0 | 8312364.0 Ops/sec |
<< 0 | 8316145.5 Ops/sec |
& 0xFFFFFFFFFFFF | 8267561.5 Ops/sec |
^ 0x000000000000 | 8251841.5 Ops/sec |
Math.trunc() | 4246549.0 Ops/sec |
x - (x % 1) | 5395307.0 Ops/sec |
parseInt() | 4327246.0 Ops/sec |