Cloud-based software company Salesforce reported better-than-expected fiscal first-quarter earnings, and its shares were up 3.3% on Wednesday to more than $155 on the news. 

If you invested in the company 10 years ago, that decision would have paid off. A $1,000 investment made June 5, 2009, would be worth nearly $15,000 as of June 5, 2019, for a total return of around 1,400%, according to CNBC calculations.