In my experience, productivity effects on salary is a rounding error. There are only two significant contributing factors for salary: 1. Your home address and 2. Your visa status
Productivity might get you a 5k raise more over your colleague on a 160k salary. Meanwhile the same engineer in Taiwan is more productive than you and getting paid 40k while working for the same company on the same product, and putting in more hours to boot.
Or the engineer could be working for a certain company in South Korea and get a bonus multiple times their annual salary because of their union contracts tied to profitability.