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

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

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

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

with crossbow expert:

1d10 + 3 + 3 * 2

with ASI

1d8 + 4 + 3 * 2

what choice would be better for DPR?