If you aren't any of the below stages, just work and gather experience and don't be bothered with your compensation as long as it is fair. A job change every 2/3 years doesn't matter.
The first sanity-parity check you should do for your compensation is between Y7 & Y10.
That base is a big determinant of the eventual high earning years salary trajectory; a lot of careers slide into mediocrity, sidelined roles and plateaued pay from Y12 to Y15.
The truly high earning years are Y18 to Y25. After that you should not need to work for daana-paani, only because you're too of the game or you need some place to spend gainful time.
*This is a typical compensation trajectory. Windfalls from IPOs, fast growing startup journeys, etc would be different because of the significant equity acceleration.