Devs seem to last two years, but they make the decision to leave well before that, so you need to get a retention offer in before they start the job search.
Only anecdotal, but that seems to be how long people last. There are no devs that I knew at either of my past two jobs that remain. Virtually all friends report similar experiences.