Among the bowlers, Cummins' gain was Rabada's loss.
Perera's 153-run knock helped Sri Lanka achieve the unthinkable in Durban.
Dane van Niekerk has been ruled out from the remainder of the ODI series.
Here are all the major stats and numbers recorded during a thrilling Test match in Kingsmead,
Perera scored a 153 not out in 200 balls.
Du Plessis credited Perera after the loss but looked disappointed.
Perera and Vishwa Fernando put on 78 runs for the last wicket.
"I will be putting it before the Cabinet next week."
Embuldeniya picked up a five-wicket haul.
Rabada got him out in the very next ball.