Teen Sasuke isn't as strong as any version of Madara in the war arc. Madara has the same exact buffs-six paths chakra and rinnegan, and if you take both of those away from both of them madara is very clearly superior to sasuke in every other way.
The only feat of sasuke supposedly keeping up is the great bisection feat, which I take with a grain of salt because madara wasn't phased by it in the slightest. Why? smaller objects are easier to warp away. madara may have been impressed by sasuke 's speed but in my opinion he let him bisect him so that kamui warping speed would go faster. Sasuke never was able to do that again either, so that marks it as an outlier in my book. Madara literally saw through everyone of sasuke's moves and the only thing he was caught off guard by was sasuke's newly found teleportation technique. After that madara immediately deduced the range of his technique and jacked kakashi's eye and accomplished his goal. Sasuke clearly took the L there. after that madara rather easily casted his genjutsu, and he seemed to change his attitude, he looked ready to go all out against naruto and sasuke before Black zetsu betrayed him. So really not seeing how teen sasuke kept up with madara. he failed to stop madara even with backup from naruto.
Furthermore, the addition of the rinnegan does nothing to help teen sasuke. madara knows all the rinnegan techniqus and is now experienced with sasuke's unique technique. With that being said, even rinnegan madara's vastly bigger experience gives him the edge. over sasuke, there is literally nothing teen sasuke can do to a serious madara.
Adult Sasuke however is a different story.