The more interesting question would be how did the 5 richest people in 2020 do. My guess is some did better than others. And how does that compare to the S&P.
Having been through this exercise as a former employee of a bank calculating this exact thing, this makes sense to me so is hopefully helpful for the poster.
As someone who never studied computer science formally, I find this perspective fascinating - for me, programming is the tool to solve the problem. It often feels like folks study the tool. And the problem is important too.