Is an ability score improvement better than crossbow expert in combination with extra attack? [duplicate]

i am making a level 5 ranger with 16 dex, a normal longbow shot would be:

1d8 + 3 (dex) * 2(extra attack)

I was wondering if my level 4 trait should be crossbow expert or a ASI.

with crossbow expert i can use the heavy crossbow with extra attack:

1d10 + 3 * 2

with ASI and a longbow:

1d8 + 4 * 2

what choice would be better for DPR?

marked as duplicate by enkryptor, Szega dnd-5e StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 31 '18 at 13:32

• Possible duplicate: rpg.stackexchange.com/a/134058/45088 – L0neGamer Dec 31 '18 at 10:37
• Your calculation is wrong - you do not add your proficiency score to your damage roll, only to the attack. – gburton Dec 31 '18 at 10:39
• Moreover, your proficiency bonus for level 4 is +2, not +3 – enkryptor Dec 31 '18 at 17:17

Crossbow expert is the best choice

Crossbow expert lets you ignore the loading property, so you can fire twice (Attack + extra attack) PLUS your bonus action, for a total of 3 times. Not just twice as per your question.

As per the answer in the link provided by L0neGamer having an extra attack is always better.

The question to ask yourself is: Do you always have a bonus action available to use with the extra attack?

• This would be better if you'd support this by comparing the two, not just assert the positives of one of the options. – user47897 Dec 31 '18 at 16:41
• Crossbow Expert feat allows you to attack with your bonus action only using a hand crossbow, and only after attacking with a one-handed weapon. So no heavy crossbows. – enkryptor Dec 31 '18 at 17:21