Australia 163 and 0 for 40 need another 592 runs to beat South Africa 225 and 569 (Amla 196, de Villiers 169, Starc 6-154)

Scorecard and ball-by-ball details

AB de Villiers powers the ball down the ground AFP

Two days remain in this match, and two possibilities. The first, by far the most likely, is a convincing South African victory, set-up by the sparkling innings of Hashim Amla and AB de Villiers and finished off by Dale Steyn, Vernon Philander and Morne Morkel.

The second, still too outlandish to contemplate, is Australia finding a way to bat for long enough to reach a winning target of 632. David Warner and Ed Cowan made a sound enough start on the third evening to reach 0 for 40 by the close, but in terms of the task ahead they have barely reached base camp at the foot of Everest.

Amla and de Villiers provided a rich day's batting entertainment at the WACA ground, both falling short of double centuries but delighting spectators with their marriage of aggression and invention. De Villiers' century was particularly notable as his first while also carrying the wicketkeeper's gloves, opening the path to an extended stint in the dual role.

Australia's bowling was made to look ordinary in the extreme at times before Mitchell Starc and Mitchell Johnson found some heat in the early evening to polish off the South African tail. In all the visitors' innings lasted just 111.5 overs, the runs arriving at more than five per six balls, and its speed has left plenty of time for Australia's batsmen to negotiate. The pitch is still playing very well and the outfield extremely fast, but the visiting bowlers are refreshed and focused on the goal of wrapping up the match, the series and the ICC's No. 1 ranking.

Smart stats The highest fourth-innings total in Test cricket is 654 for 5, by England against South Africa in Durban in 1939. England played 218.2 eight-ball overs in that innings.

South Africa's 111.5 overs is the second most any team has faced in an innings in which their run-rate is more than five. Australia faced 146.3 and achieved a rate of 5.01 at the same ground against Zimbabwe in 2003.

This is only the fourth recorded instance of a team scoring at more than five per over in an innings lasting more than 100 overs. Two of them have happened in successive Tests.

AB de Villiers' 169 is more than three times his previous-highest score as wicketkeeper (52* v England in Durban in 2004). In his last 11 Tests against Australia, he averages 63.81.

De Villiers has 422 runs in three Tests in Perth, at an average of 84.40. Among overseas batsmen, only David Gower has scored more Test runs at this ground.

Among all batsmen who've scored at least 300 Test runs in Perth, de Villiers' average is the highest.

This is the third time two South African batsmen have scored 150 or more in an innings against Australia. On the previous occasion too de Villiers was one of the batsmen (he scored 163 and Ashwell Prince 150 in Cape Town in 2009).

The last South African to bag a pair on debut was Allan Donald. The last time a batsman in the top seven bagged a pair on debut for South Africa was in 1913.

Cowan and Warner began the pursuit with unhappy first innings memories; Cowan's of a golden duck, Warner's an unwise waft at Steyn that pinpointed the start of Australia's sharp second day slide from a promising position to a dire one. They fought out the closing overs in characteristic fashion, Warner hitting boundaries both certain and uncertain, Cowan watching the ball intently and surviving an exquisitely probing first spell by Philander.

There was some tension evident on South Africa's side when Cowan twice pulled away from the bowler, citing flies around his helmet. He exchanged words with the visiting captain Graeme Smith before a can of Aeroguard was called for. So far the Australian openers' stand has been merely a nuisance, but their survival placed a slightly different slant on a day that had been a South African waltz for most of its duration.

Resuming with a lead of 292, South Africa rose to salute Amla when he flicked Johnson to fine leg for his 18th Test century, a stroke representative of his legside mastery. Amla's movement across outside off stump to play to leg was exaggerated at times, but apart from the sliced drive from Johnsons' wide ball that just eluded Michael Hussey's reach he was seldom troubled.

Kallis rumbled along comfortably enough himself until Michael Clarke swung Starc around to the Prindiville Stand end, teasing out a top-edged hook shot that Johnson held well at fine leg, the ball dying into the breeze late in its path. De Villiers took his time to get established but accompanied Amla to the interval with an enormous amount of time left to stretch Australia's eventual target.

There was acceleration on resumption, de Villiers advancing to ping Nathan Lyon down the ground for a straight six, while Amla took advantage of Hussey's introduction with a pair of boundaries. Clarke responded to the calls of the WACA crowd by handing Ricky Ponting a bowl for the final over before the second new ball became due.

Given how Starc and John Hastings started with it Clarke might have been better off keeping Ponting on, as de Viliers and Amla attacked with impunity. It took Johnson's introduction to draw a few false strokes, and ultimately a wicket when Amla blocked a drive back to see the chance snaffled by Johnson's outstretched right hand.

Dean Elgar wore a sharp blow on the elbow before playing inside a fuller delivery to be pinned LBW - though this did not stop him from seeking an imprudent review in the manner of Ponting the day before. Two wickets in an over did little to unsettle de Villiers though, and the three reverse-swept boundaries to go to three figures summed up the marriage of skill and invention he has used so well as a batsman and now a wicketkeeper also.

After tea the runs arrived in a torrent, de Villiers taking progressively more liberties and Faf du Plessis showing the penchant for shots as well as forward defensives. Their concentration was broken when Clarke called for a highly speculative LBW referral against de Villiers, the break in rhythm proving more helpful than the video evidence. Johnson broke the stand next ball with a swift delivery going across du Plessis, and the final five wickets melted away for 31 runs. Whether that is of any consequence for South Africa will not be known until tomorrow.