In scenarios running against databases, it is usually the distributed call overhead that dominates the time taken. So you wouldn't really be comparing Java vs C.
You can trace
JDBC interface calls with a number of tools, for example P6Spy
--Jack Shirazi
JavaPerformanceTuning.com