While Musk argues Tesla's large spending is essential for future growth, it could take some time before any investments pay off.

Shares in Elon Musk company fall more 3% in after-hours trading, as earnings per share miss Wall Street expectations

Tesla revenue jumped on record vehicle deliveries in Q2, but operating profit dipped because of heavy spending on R&D.