The numbers people throw at this question are absurd — one answer gives Superman a speed with dozens of trailing zeros, then gives Sonic a similarly ridiculous figure, then concludes Sonic wins because he can keep accelerating without limit.
Stripped of the shouting, the actual case is interesting. Sonic's feats are inconsistent by design: he is portrayed as breaking the sound barrier casually and, in some material, moving at extraordinary speeds through rings and boosts. Superman's are more stable and more extreme, including moving faster than light and travelling between stars.
So a straight race probably goes to Superman, while Sonic's argument rests on acceleration with no stated ceiling. It is a fun argument precisely because neither character has a fixed number, and "faster than a cheetah" is true of both without settling anything.