I pulled a calf muscle while hiking and the injury/pain persisted for weeks and went to sports medicine doc who recommended compression sleeves for the legs and not full socks (which I have for flying since the hip has been replaced twice).
They definitely helped with the injury and I used them while biking, too, as heel drop would stress the calf. I still throw them on for steeper hikes.
https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1