Tesla CEO Elon Musk in front of Nasdaq after Tesla's initial public offering on June 29, 2010. AP PhoAP Photo/Mark Lennihan

Tesla's initial public offering occurred eight years ago Friday, and an investor buying in then would have made a very impressive return.

After initially offering its stock at $19 a share on June 29, 2010, Tesla closed its first day of trading at $23.89, according to data from Yahoo Finance. As of the market's close on Thursday, Tesla was trading at $349.93 a share, down from its all-time-high closing price of $385 a share on September 18.

The chart below shows the value over time of a $1,000 investment in Tesla stock made at the first day's closing price of $23.89. As of Thursday, that investment would be worth about $14,648, which is a pretty good return.