Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
75 stars 25 forks source link

Remove 0.491 constant value from CPU die size #279

Closed tibosmn closed 8 months ago

tibosmn commented 8 months ago

Fixes #275

In the current computation of CPU die size, we include a constant value of 0.491 cm², derived from Green Cloud Computing (Figure 31, where the precise value is 0.49157).

Given that we now utilize a die size derived from a more extensive range of CPU models than those examined in the referenced study, the addition of such a constant is unnecessary to the computation die size = die size per core * number of cores.

Consequently, I suggest setting constant_core_impact to 0 to easily handle this issue. Please advise if I should remove core_impact altogether.

tibosmn commented 8 months ago

To ease future maintainability I removed constant_core_impact and core_impact altogether.

Also updated the unit tests, sry :clown_face:

da-ekchajzer commented 8 months ago

I've fixed the conflict linked to updating unit tests in the PR : https://github.com/Boavizta/boaviztapi/pull/272.

demeringo commented 8 months ago

[!IMPORTANT]
This change may slightly update the values of embedded impacts returned by he API (e.g. https://github.com/Boavizta/cloud-scanner/issues/467)