If i do a track with very complex drums ,the drums programming/sample selections and stuff will probably be 40-45% of the composing ,then comes the melodies,chords,song structure and FX another 40-45% and then the mixing(and self made shitty mastering) ,getting everything right etc. for 10-20%.
Sometimes drums takes more times ,sometimes melodies take more time,it depend on the track.