Across comparable stats, Keshav Maharaj leads 5–19.
Test
| Dirk Viljoen | Stat | Keshav Maharaj |
|---|---|---|
| 2 | Matches | 63 |
| 4 | Innings | 97 |
| 57 | Runs | 1369 |
| 14.25 | Average | 15.55 |
| 32.75 | Strike rate | 61.00 |
| 38 | Highest | 84 |
| 0 | Hundreds | 0 |
| 0 | Fifties | 6 |
| 6 | Fours | 155 |
| 0 | Sixes | 30 |
| 1 | Wickets | 220 |
| 65.00 | Bowling average | 29.55 |
| 3.71 | Economy | 3.12 |
| 1/14 | Best bowling | 9/129 |
| 0 | 5 wickets | 6 |
ODI
| Dirk Viljoen | Stat | Keshav Maharaj |
|---|---|---|
| 53 | Matches | 58 |
| 43 | Innings | 32 |
| 512 | Runs | 328 |
| 14.22 | Average | 13.66 |
| 61.91 | Strike rate | 80.98 |
| 63* | Highest | 40 |
| 0 | Hundreds | 0 |
| 2 | Fifties | 0 |
| 26 | Fours | 38 |
| 5 | Sixes | 4 |
| 44 | Wickets | 79 |
| 37.25 | Bowling average | 29.69 |
| 4.73 | Economy | 4.69 |
| 3/20 | Best bowling | 5/33 |
| 0 | 5 wickets | 4 |
T20I
| Dirk Viljoen | Stat | Keshav Maharaj |
|---|---|---|
| - | Matches | 54 |
| - | Innings | 19 |
| - | Runs | 107 |
| - | Average | 8.91 |
| - | Strike rate | 84.25 |
| - | Highest | 41 |
| - | Hundreds | 0 |
| - | Fifties | 0 |
| - | Fours | 6 |
| - | Sixes | 5 |
| - | Wickets | 55 |
| - | Bowling average | 26.30 |
| - | Economy | 7.87 |
| - | Best bowling | 3/24 |
| - | 5 wickets | 0 |