People naturally "compare up" rather than "compare down". Sure OP is probably in the 1% wealthiest people in the world, or top 99.9999% of those who ever lived, but rather than be happy with that, he will compare himself to other computer programmers who are doing fantastically, and feel bad about himself.
Another factor here is probably the fact that OP's working conditions are highly exploitative, it appears that he is putting in far more work than necessary. He probably genuinely believes that hard work is rewarded and doesn't understand why he feels used up and spent. And it's probably because he is being used up and spent by his exploitative employer. So fair enough if you look around and see other developers who are not being used up, you might decide you want to live life with a measure of dignity, too.
Any rational actor in this circumstance would do the minimum work they could get away with, and do whatever they can to negotiate for better conditions. A first step might be to develop enough self esteem to be able to say "no" when asked to work unhealthy and unproductively long hours. But without knowing more of the specifics of how much leverage he has, it's hard to know if that is going to be met with instant reprisal or whether he will be able to gain the respect he deserves.
Of course, I am starting from the basic assumption that all human beings are worthy of some basic amount of respect, dignity, and freedom from exploitation.