Oddly enough, there a similarites in both environments. In my 24 years in IT, it is about 50/50 now.
I started in Private with a small mom and pop. Pay was good, enough to live on but their operating budget was tight and you were salaried, so did what was necessary to keep your job. Usually benifits were very marginal, health only, but this may not always be the case. Have worked Fortune 100, a big company with many divisions and subsidaries. Good benifits, but if the books did not look good or meet the parent companies expectations, employess got wacked. The one I was at, pink slips went out Christmas week, but the budget was saved for that fiscal year. Four months later, they were hiring. In this type of environment, I agree that sometimes it is who you know and that is how you get promoted or hired, regardless of your knowledge or expertise. Depending on the company, the pay will vary. At Fortune 100, the pay it was well above the norm. It was more than mid grade in the pay band, but I had the knowledge and expertise they wanted. Buy the way, Private uses tests as well, somtimes detailed questions - verbal or written. My interview was 3.5 hours long and a follow up with the Division VP for 2 more hours. Sometimes those are the breaks. So like I said it varies, pay is good, benifits good, but the risk is out there that you can be out of a job, immediately.
Public will vary. Talking Federal, State, County (or its equivlant) or City. I have seen wide variences in all 4 of these. Those with rich budgets pay more. It also comes down to the entity within of each of these 4. A lot of the control is not in their hands as it is legislatively mandated. Also, depended upon the governmental entity, there may be unions or not. There also maybe vestion and bumping rights when the budget goes sour. There also maybe zero rights and when the budget goes sour, it will depend upon your evaluation to see who keeps their job and who gets the pink slip. The benifits are usually very good. Small employee contrib to health ins, maybe no or very trivial payment for life ins, zero contrib to a portable pension plan (401b by the way vs. 401k for private), employee deferred compensation, etc. Example, I pay $6 a month for parking in a major metropolitan city while friends of mine pay close to $200 per month. They make more than me but have higher expenses which off sets the salary. I will say that the same thing goes here. It is who you know and not necessarly what you know that can get you promoted or hired.
Enough for my soap box for now. There are risks and perks in both sectors. All factors need to be evaluated in determination overall compensation vs. final pay and I am not saying what your W2 says. There are some expenses that you can not deduct on your taxes but bite into your paycheck as costs of working at a particular company. The same goes the other way. There are benifits that the employer maybe paying at higher percentage of that when looked at in the BIG PICTURE of your compensation and will offset what looks like to be a reduced salary between environments. People, do the math. This is very important if you are considering changing jobs and localities.
May you all have a great day!