Dear Arika,
There are two ways of looking at it. If you love going to the office every day, why would you think of leaving it? It's simple—if you sleep well at night, there's no need to change jobs. If your job has taken away your sleep, it's the right time to look out for a better opportunity.
Measuring Performance in HR
Being in HR for a long time, I still use an old thumb rule for measuring someone's performance. If an employee's salary is doubled in a span of 4-5 years, they're simply performing well. If in the same period their salary is not doubled, either they're not performing or their organization is not performing.
Long-term Employment Considerations
There is no harm at all in retiring from an organization after 2-3 decades, but it depends on the approach of your employer (both the organization and your reporting manager). Some employers see employees as assets, while some start viewing them as a heavy expense after a couple of years.
Probably seven-eight years ago, I interviewed for a senior HR position and learned during the interview how the employer feels about long-term employees. They felt that old employees are not getting any jobs elsewhere, hence they're staying for many years. Therefore, in that kind of scenario, it's not right to continue the association with an employer having a negative approach.
Moreover, in the same competitive scenario you mentioned, sometimes staying in the job is safer. One also needs to consider the security of their career before moving to a new organization.
Regards,
Umesh Chaudhary
[Email Removed For Privacy Reasons]