Across comparable stats, Dirk Viljoen leads 12–9.
Test
| Dirk Viljoen | Stat | Mohammad Irfan |
|---|---|---|
| 2 | Matches | 4 |
| 4 | Innings | 7 |
| 57 | Runs | 28 |
| 14.25 | Average | 5.60 |
| 32.75 | Strike rate | 32.18 |
| 38 | Highest | 14 |
| 0 | Hundreds | 0 |
| 0 | Fifties | 0 |
| 6 | Fours | 4 |
| 0 | Sixes | 0 |
| 1 | Wickets | 10 |
| 65.00 | Bowling average | 38.90 |
| 3.71 | Economy | 3.27 |
| 1/14 | Best bowling | 3/44 |
| 0 | 5 wickets | 0 |
ODI
| Dirk Viljoen | Stat | Mohammad Irfan |
|---|---|---|
| 53 | Matches | 60 |
| 43 | Innings | 33 |
| 512 | Runs | 48 |
| 14.22 | Average | 4.00 |
| 61.91 | Strike rate | 32.21 |
| 63* | Highest | 12 |
| 0 | Hundreds | 0 |
| 2 | Fifties | 0 |
| 26 | Fours | 5 |
| 5 | Sixes | 2 |
| 44 | Wickets | 83 |
| 37.25 | Bowling average | 30.71 |
| 4.73 | Economy | 4.91 |
| 3/20 | Best bowling | 4/30 |
| 0 | 5 wickets | 2 |
T20I
| Dirk Viljoen | Stat | Mohammad Irfan |
|---|---|---|
| - | Matches | 22 |
| - | Innings | 4 |
| - | Runs | 4 |
| - | Strike rate | 50.00 |
| - | Highest | 2* |
| - | Hundreds | 0 |
| - | Fifties | 0 |
| - | Fours | 0 |
| - | Sixes | 0 |
| - | Wickets | 16 |
| - | Bowling average | 35.12 |
| - | Economy | 7.44 |
| - | Best bowling | 2/18 |
| - | 5 wickets | 0 |