You're not likely to see that in huge companies because everybody is already paying attention to them and it's harder to know something someone else doesn't about the thing everybody already knows everything about. Also, then it's more likely to happen on a scale of 10 days than 10 years.
Where that really happens is with startups and younger companies. Some company is currently making negative dollars but a few people have figured out that they're likely to be big so their share price is up before their earnings are.
And suppose you somehow actually knew what every major company's earnings would look like in every year from 2015 to now. Do you invest in Nvidia in 2015? Or do you invest in Netflix in 2015 and Tesla in 2019 and so on and not bother with Nvidia until just before the hockey stick?