thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
389 stars 49 forks source link

Use base 10 (1000) vs base 2 (1024) for network calcs. Fixes #75 #93

Closed mrchrisadams closed 2 years ago

mrchrisadams commented 2 years ago

This PR reintroduces the constants to use base 10 figures for calculations, so when we say Gigabyte we are referring to 1000 * 1000 * 1000 bytes.

This is assuming the the original paper, when it refers to transfer in terms of gigabytes, is using the same calculation.

What should this do to the calcs?

This should have the effect of making emissions figures for every calculation go up slightly, as the top down model that this is based on divides a set amount of energy use allocated to an entire system, then divides it by a very large number of gigabytes of transfer, to figure out a energy used for give amount of transfer.

By making the number we divide the total energy by smaller, we end up with higher energy use per byte, so we end up with higher numbers for carbon emissions as well.