They are effectively equal in both speed and power, which is deliberate on the developers' part. Shadow was created as Sonic's dark counterpart, and the games consistently write them as evenly matched rivals.
Where they differ is style rather than raw capability — Shadow leans on Chaos Emeralds and firearms, Sonic on momentum and the environment. Any "who wins" answer comes down to which abilities are available in a given fight.