Across comparable stats, Dirk Viljoen leads 6–5.
Test
| Dirk Viljoen | Stat | Tanwir Afzal |
|---|---|---|
| 2 | Matches | - |
| 4 | Innings | - |
| 57 | Runs | - |
| 14.25 | Average | - |
| 32.75 | Strike rate | - |
| 38 | Highest | - |
| 0 | Hundreds | - |
| 0 | Fifties | - |
| 6 | Fours | - |
| 0 | Sixes | - |
| 1 | Wickets | - |
| 65.00 | Bowling average | - |
| 3.71 | Economy | - |
| 1/14 | Best bowling | - |
| 0 | 5 wickets | - |
ODI
| Dirk Viljoen | Stat | Tanwir Afzal |
|---|---|---|
| 53 | Matches | 20 |
| 43 | Innings | 19 |
| 512 | Runs | 292 |
| 14.22 | Average | 18.25 |
| 61.91 | Strike rate | 114.50 |
| 63* | Highest | 73 |
| 0 | Hundreds | 0 |
| 2 | Fifties | 1 |
| 26 | Fours | 18 |
| 5 | Sixes | 18 |
| 44 | Wickets | 19 |
| 37.25 | Bowling average | 31.63 |
| 4.73 | Economy | 4.23 |
| 3/20 | Best bowling | 3/20 |
| 0 | 5 wickets | 0 |
T20I
| Dirk Viljoen | Stat | Tanwir Afzal |
|---|---|---|
| - | Matches | 21 |
| - | Innings | 18 |
| - | Runs | 219 |
| - | Average | 13.68 |
| - | Strike rate | 126.58 |
| - | Highest | 56 |
| - | Hundreds | 0 |
| - | Fifties | 1 |
| - | Fours | 9 |
| - | Sixes | 15 |
| - | Wickets | 19 |
| - | Bowling average | 26.78 |
| - | Economy | 7.16 |
| - | Best bowling | 2/8 |
| - | 5 wickets | 0 |