You could test it by using different attacks against enemies and look in the combat log to see which attack did most damage.
But I usually play as pure warrior, ranger or mage so it makes sense to stick to either melee, ranged or magic... since switching to another form of damage will always do lesser damage in that case.