I did the math a few years back on how long you would have to run old machines to (roughly) offset the carbon emissions instead of purchasing new hardware. This included all mining, refinement, manufacturing, shipping and electrical savings from more efficient processors.
A big part of this is the very intense amount of energy producing the silicon wafer from Quartz ingots. While they weigh only a few grams of the total machine they reside in, they have a very sizable impact on total energy.
Funnily enough, for most desktop computers it would take about 15 years of non-stop usage to manage this. That is if powered purely by Lignite/Brown Coal. Anything cleaner, so almost any other energy source, and you have to run them way longer. If purely on solar panels and their manufacturing carbon output, it moves into the centuries range.