Discount retailers have been on a tear since the beginning of the Great Recession. Once looked upon with disdain, companies like Dollar General (NYSE: DG), Family Dollar, and Dollar Tree have beaten the broader market handily over the past few years, making investors very happy and a whole lot richer. To determine whether it's time get in on this action, I've decided to see how each of these companies has performed in terms of three important retail industry metrics. You can see my assessment of Dollar Tree in this link. Today, we cast our gaze upon Dollar General.

1. Revenue growth
The first variable to consider when gauging the quality of a retail stock is sales or revenue. (Actually, that applies to most stocks.) You'll find this figure at the top of a company's income statement; that's why revenue is sometimes referred to as the "top line." What you want is a revenue figure that grows with time. The best type of growth is organic growth -- that is, the process of business expansion from productivity at existing stores, as opposed to business expansion from the construction of new ones. In the industry, the former is known as "same-store sales" or "comp sales," and it's a principal measure of success.

Source: Retailsails.com.

As you can see in the chart above, Dollar General has performed well in terms of growth on both of these fronts. Since 2007, its top-line sales have grown an impressive 42%, going from $9.2 billion in 2007 to $13 billion in 2011. This equated to an annual average growth rate of 8.7%. Much of this growth, moreover, has occurred organically, as its average same-store sales increase for the five years was 5.8%.

2. Margin expansion
The second variable to consider when assessing a retail stock is margin. As you probably know by now, there are three types of margin. The first is the gross margin, which represents the percentage of revenue remaining after the cost of goods sold is deducted. The second type is operating margin, which represents the smaller percentage of revenue remaining after operating expenses such as marketing and administrative salaries are further deducted. And finally, the net or profit margin is the percentage of revenue that remains after all expenses, both cash and non-cash, such as depreciation, are subtracted from sales or revenue.

Although it's tempting to compare one retailer's margins to another's, doing so can be misleading if you're not careful to account for other factors. On the face of it, for instance, the struggling bookseller Barnes & Noble's 24.93% gross margin looks better than the expanding giant Costco's at 12.47%. Yet few would suggest that the former is a better investment than the latter. While this is obvious as you proceed down their respective income statements -- as Barnes & Noble loses money year-over-year whereas Costco makes money -- it's inherently a function of their business models. Namely, Costco is a wholesale discount retailer whereas Barnes & Noble is not. To avoid making this mistake, you need to consider a specific company's margins over time -- look for dynamic growth, otherwise known as margin expansion, and not just a static value.

Source: Retailsails.com.

Dollar General performs well in terms of margin expansion. As you can see in the chart above, the discount retailer has increased all three of its margin figures over the last five years. While its gross margin went from 25.8% in 2007 to 32% last year, the most impressive increases were in its operating and profit margins. The former increased by 7.1 percentage points over the period, whereas the latter increased by 3.3 percentage points -- notably, both of these tripled in size.

3. Valuation
The third variable to consider when assessing a retail stock is value. And the most accessible metric to gauge value is the price-to-earnings ratio, or P/E ratio, which effectively tells you how much you have to pay for each dollar of a company's earnings. Because Wal-Mart's P/E is 12.99, for instance, new investors are effectively paying $12.99 for the right to each dollar of the retail giant's earnings. A good benchmark in this regard is an estimate of the broader market's P/E ratio, which currently stands at 15.87. Speaking very generally, then, anything above that would be considered relatively expensive and anything below that relatively cheap.

Another way to think about value is to invert the P/E ratio. This gives you the earnings yield, which facilitates a rough comparison to both bond yields and inflation. The risk-free rate of return right now, as measured by the yield on the 10-year Treasury bond, is 1.91%. And the current rate of inflation is 2.93%. As a result, in the absence of future earnings growth, a stock with an earnings yield below either of these benchmarks will likely underperform the market, all else equal. To return to our Wal-Mart comparison, its earnings yield is 7.8%, well above both of these valuation benchmarks.

Source: Yahoo! Finance, Wall Street Journal.

Unfortunately, as a likely consequence of its aforementioned success, shares in Dollar General are trading well above the broader market in terms of valuation. Indeed, while it takes $12.87 to buy $1 of the S&P 500's earnings, it takes nearly double that, or $21.04, to buy $1 of Dollar General's earnings. To justify this, the discount retailer will have to grow its earnings at roughly twice the rate of the broader market over the foreseeable future -- a tough task to be certain.

Foolish bottom line
At the end of the day, it's easy to understand why Dollar General's shares have performed so admirably over the last few years, as both its sales and margins have expanded impressively. This past success, however, cuts both ways, as its shares now trade in anticipation of similar growth in the future. While the discount retailer may be able to meet these expectations, there's no reason to gamble when investors could instead pick up the stock identified in our recently released free report "The Motley Fool's Top Stock for 2012." To access your copy of this report before the market catches on and sends this stock soaring to new heights, click here now -- it's free.