Across comparable stats, Khaled Mahmud leads 4–19.
Test
| Dirk Viljoen | Stat | Khaled Mahmud |
|---|---|---|
| 2 | Matches | 12 |
| 4 | Innings | 23 |
| 57 | Runs | 266 |
| 14.25 | Average | 12.09 |
| 32.75 | Strike rate | 58.46 |
| 38 | Highest | 45 |
| 0 | Hundreds | 0 |
| 0 | Fifties | 0 |
| 6 | Fours | 30 |
| 0 | Sixes | 3 |
| 1 | Wickets | 13 |
| 65.00 | Bowling average | 64.00 |
| 3.71 | Economy | 3.08 |
| 1/14 | Best bowling | 4/37 |
| 0 | 5 wickets | 1 |
ODI
| Dirk Viljoen | Stat | Khaled Mahmud |
|---|---|---|
| 53 | Matches | 77 |
| 43 | Innings | 72 |
| 512 | Runs | 991 |
| 14.22 | Average | 14.36 |
| 61.91 | Strike rate | 67.83 |
| 63* | Highest | 50 |
| 0 | Hundreds | 0 |
| 2 | Fifties | 1 |
| 26 | Fours | 90 |
| 5 | Sixes | 7 |
| 44 | Wickets | 67 |
| 37.25 | Bowling average | 42.76 |
| 4.73 | Economy | 5.07 |
| 3/20 | Best bowling | 4/19 |
| 0 | 5 wickets | 1 |