Across comparable stats, Shardul Thakur leads 6–18.
Test
| Dirk Viljoen | Stat | Shardul Thakur |
|---|---|---|
| 2 | Matches | 13 |
| 4 | Innings | 21 |
| 57 | Runs | 377 |
| 14.25 | Average | 18.85 |
| 32.75 | Strike rate | 59.84 |
| 38 | Highest | 67 |
| 0 | Hundreds | 0 |
| 0 | Fifties | 4 |
| 6 | Fours | 46 |
| 0 | Sixes | 9 |
| 1 | Wickets | 33 |
| 65.00 | Bowling average | 31.03 |
| 3.71 | Economy | 3.81 |
| 1/14 | Best bowling | 7/61 |
| 0 | 5 wickets | 1 |
ODI
| Dirk Viljoen | Stat | Shardul Thakur |
|---|---|---|
| 53 | Matches | 47 |
| 43 | Innings | 25 |
| 512 | Runs | 329 |
| 14.22 | Average | 17.31 |
| 61.91 | Strike rate | 105.11 |
| 63* | Highest | 50* |
| 0 | Hundreds | 0 |
| 2 | Fifties | 1 |
| 26 | Fours | 31 |
| 5 | Sixes | 9 |
| 44 | Wickets | 65 |
| 37.25 | Bowling average | 30.98 |
| 4.73 | Economy | 6.22 |
| 3/20 | Best bowling | 4/37 |
| 0 | 5 wickets | 3 |
T20I
| Dirk Viljoen | Stat | Shardul Thakur |
|---|---|---|
| - | Matches | 25 |
| - | Innings | 6 |
| - | Runs | 69 |
| - | Average | 23.00 |
| - | Strike rate | 181.57 |
| - | Highest | 22* |
| - | Hundreds | 0 |
| - | Fifties | 0 |
| - | Fours | 5 |
| - | Sixes | 4 |
| - | Wickets | 33 |
| - | Bowling average | 23.39 |
| - | Economy | 9.15 |
| - | Best bowling | 4/27 |
| - | 5 wickets | 1 |