Doughnut maker Krispy Kreme's ( KKD) second-quarter earnings rose nearly 50% over last year and beat out analyst consensus estimates by a penny. The company said it opened 12 new stores, which contributed to positive quarterly results.

Krispy Kreme earned $8.9 million, or 15 cents a share, compared with $5.9 million, or 10 cents a share, a year ago. The analyst consensus was for earnings of 14 cents a share, according to First Call/Thomson Financial.

Revenue rose 28% to $114.6 million from $89.5 million from last year.

The company expects third-quarter EPS to be 16 cents and fourth-quarter EPS to be 18 cents, in line with expectations.

Shares of the company were unchanged at $36.36 Wednesday on the New York Stock Exchange.