It's mostly dependant on the map's HP value, higher values being more strict on how the HP bar falls and raises. As a reference, you need 50% or higher HP to pass a beatmap.
When ranking beatmaps, mappers should use higher HPs for shorter songs or less notes, and vice versa, so it should mostly be balanced. However this is not always the case.