I've found that the amount of res you gain is generally 10x the hero exp you gain from killing the defending troops.

Valley level also has something to do with it I guess.