Unless you’re being paid on a fixed bid it doesn’t matter. Someone else is reaping the rewards of your productivity not you. You’re being paid the same as your half-as-productive coworkers.
Figuring out the best way to determine productivity is still a hard problem, but I think it's a category error to think that productivity gains go exclusively to the company.
If all (or even most) of the engineers on your team who were previously your equal become durably twice as productive and your productivity remains unchanged, your income prospects will go down, quite possibly to zero.