Across comparable stats, Imam-ul-Haq leads 3–18.
Test
| Dirk Viljoen | Stat | Imam-ul-Haq |
|---|---|---|
| 2 | Matches | 31 |
| 4 | Innings | 58 |
| 57 | Runs | 1865 |
| 14.25 | Average | 34.53 |
| 32.75 | Strike rate | 47.77 |
| 38 | Highest | 157 |
| 0 | Hundreds | 3 |
| 0 | Fifties | 11 |
| 6 | Fours | 202 |
| 0 | Sixes | 13 |
| 1 | Wickets | 0 |
| 65.00 | Bowling average | - |
| 3.71 | Economy | 4.50 |
| 1/14 | Best bowling | - |
| 0 | 5 wickets | 0 |
ODI
| Dirk Viljoen | Stat | Imam-ul-Haq |
|---|---|---|
| 53 | Matches | 75 |
| 43 | Innings | 74 |
| 512 | Runs | 3152 |
| 14.22 | Average | 47.04 |
| 61.91 | Strike rate | 81.95 |
| 63* | Highest | 151 |
| 0 | Hundreds | 9 |
| 2 | Fifties | 20 |
| 26 | Fours | 253 |
| 5 | Sixes | 30 |
| 44 | Wickets | 0 |
| 37.25 | Bowling average | - |
| 4.73 | Economy | - |
| 3/20 | Best bowling | - |
| 0 | 5 wickets | 0 |
T20I
| Dirk Viljoen | Stat | Imam-ul-Haq |
|---|---|---|
| - | Matches | 2 |
| - | Innings | 2 |
| - | Runs | 21 |
| - | Average | 10.50 |
| - | Strike rate | 84.00 |
| - | Highest | 14 |
| - | Hundreds | 0 |
| - | Fifties | 0 |
| - | Fours | 2 |
| - | Sixes | 0 |