Test name | Executions per second |
---|---|
floor | 3261768.8 Ops/sec |
~~ | 5860105.5 Ops/sec |
>> 0 | 5932706.0 Ops/sec |
| 0 | 5919289.0 Ops/sec |
<< 0 | 5983094.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6017059.0 Ops/sec |
^ 0x000000000000 | 6034550.5 Ops/sec |
Math.trunc() | 3303522.5 Ops/sec |
x - (x % 1) | 3964594.2 Ops/sec |
parseInt() | 3254657.8 Ops/sec |