There are something like 10-30 million programmers †
In contrast there are a handful of "founders who made it" to the point of making a billion, and there's only a small number - a few thousand? - who made (say) 10s of millions.
Further, note that programmers are insanely well-paid. Unless you're a complete idiot, any programmer can build say $1m in wealth each working decade, if not much more.
I'm, uh, afraid to say I can't find any statistics but it would surely seem that "programmers en masse" beat "founders en masse"
I'm not sure if you're asking the question this way - there's an incredibly low chance of going from "founder - trying" to "founder - made a pile". Did you mean "assuming that" the founder makes it?
Don't forget there's the issue where very many programmers in fact collect a hit from options or similar instruments for being part of a startup. Many/most programmers work at a few startups along the way, collecting paper, and hoping one hits. This doesn't get you "founder money" but certainly many programmers collect the odd six figure or even much bigger bonus this way along the way. This probably factors in to your question.
Note that there are "soft hits" as well, which programmers are exposed to. It's relatively common (I mean in terms of your "become a billionaire" question) for programmers to have a " 'small' " hit on an app store, stumble on to a tool that sells, or have a niche web site that's a hit for few years, and "merely" pick up the odd half million or couple million bucks from that. i think in the spirit of your question you're not including that, but it very much adds up on the "ordinary old programmer" statistics side.
Hence, attempting to answer the spirit of your question,
Statistically is it worth running after that carrot called own startup as opposed to sitting in the office chair 9 to 5?
Almost certainly not. Simply since programmers enjoy crazy pay, and, on top of that there are typical kickers along the way, all you have to do is be mediocre and show up for a couple decades, and you'll be "millionaire-next-door" rich very easily.
However, do please note that money is an illusion which means nothing. All that matters is enjoying the finest wine, having pointlessly expensive cars, incredibly attractive children, and designer accessories.