-
Notifications
You must be signed in to change notification settings - Fork 0
Description
There are now 3 tests.
yarn start --url https://www.statik.be --test co2 : This only uses the total amount of bytes of the page into account.
yarn start --url https://www.statik.be --test trace-co2 --device BEL --devicePercentage 70 --deviceRest EU --dataCenter BEL :
This takes --device as a minimum extra parameter. The --device is a Alpha-3 ISO country code of the devices that surf to the website.
The --devicePercentage is the percentage of the use from this country.
The --deviceRest is the rest of the teaffic. This can be another country code or more general regions as EU or WORLD
The --dataCenter is the location of the server in the world.
So the example above estimates that 70% of all traffic comes from devices located in Belgium and the rest from the European region. And it also states that the server is located in a datacenter in Belgium.
yarn start --url https://www.statik.be --test visit-co2 --firstVisitPercentage 65 --device BEL --devicePercentage 70 --deviceRest EU --dataCenter BEL :
This test adds one extra parameter to the mix, and that's the percentage of first time visitors. It also takes in account the cache ratio of the site for returning visitors. This will result in a more accurate calculation of the average co2 emissions for the page.