>>vgathe+(OP)
They're not applied as widely as it may seem. The terms are typically "up to" the length of time, and in practice firms waive 50-100% of the non-compete length pretty frequently, which is a decent sign that the cost is non-negligible. It is a bit tricky not knowing until you quit how long you'll be held to it, though.