Across comparable stats, Glenn McGrath leads 17–7.

Test

Glenn McGrathStatDirk Viljoen
124 Matches 2
138 Innings 4
641 Runs 57
7.36 Average 14.25
40.82 Strike rate 32.75
61 Highest 38
0 Hundreds 0
1 Fifties 0
51 Fours 6
1 Sixes 0
563 Wickets 1
21.64 Bowling average 65.00
2.49 Economy 3.71
8/24 Best bowling 1/14
28 5 wickets 0

ODI

Glenn McGrathStatDirk Viljoen
250 Matches 53
68 Innings 43
115 Runs 512
3.83 Average 14.22
48.72 Strike rate 61.91
11 Highest 63*
0 Hundreds 0
0 Fifties 2
7 Fours 26
0 Sixes 5
381 Wickets 44
22.02 Bowling average 37.25
3.88 Economy 4.73
7/15 Best bowling 3/20
9 5 wickets 0

T20I

Glenn McGrathStatDirk Viljoen
2 Matches -
1 Innings -
5 Runs -
5.00 Average -
41.66 Strike rate -
5 Highest -
0 Hundreds -
0 Fifties -
0 Fours -
0 Sixes -
5 Wickets -
15.80 Bowling average -
9.87 Economy -
3/31 Best bowling -
0 5 wickets -