Salary to rent ratio

What percent of your gross salary do you spend on rent? Curious as I look for a place to live and decide to get roommates or no.