Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microseconds microgramm #101

Merged
merged 10 commits into from
Oct 19, 2024
Merged

Microseconds microgramm #101

merged 10 commits into from
Oct 19, 2024

Conversation

ArneTR
Copy link
Member

@ArneTR ArneTR commented Oct 19, 2024

This PR aligns the API connection to the new reworked /v2/ci/measurement/add endpoint that works with microseconds and microgramms.

Futhermore the internal time tracking was moved to microseconds.

Energy budgeting was already done in microsecond precision. So it is just an alignment.

Note: It requires 64bit systems to work. Otherwise the time integer will overflow and produce only crap

@ArneTR ArneTR requested a review from ribalba October 19, 2024 11:09
Copy link

github-actions bot commented Oct 19, 2024

Old Energy Estimation

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 5.61 32.8974 2.39 13.79
No quotes allowed in labels 10.995 7.32868 2.62 2.80
(Soo this is something) echo SHELL 6.16667 9.19111 2.95 3.12
Environment setup (OS ubuntu-22.04, lint) 4.03333 8.64845 2.80 3.09
No quotes allowed in labels 3.09333 7.72916 2.51 3.08

🌳 CO2 Data:
City: Boydton, Lat: 36.6676, Lon: -78.3875
IP: 74.249.13.136
CO₂ from energy is: 0.011645538 g
CO₂ from manufacturing (embodied carbon) is: 0.003934477 g
Carbon Intensity for this location: 354 gCO₂eq/kWh
SCI: 0.015580 gCO₂eq / pipeline run emitted

Copy link

github-actions bot commented Oct 19, 2024

Old Energy Estimation

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 3.2875 28.057 1.99 14.13
No quotes allowed in labels 6.855 6.01026 2.25 2.67
(Soo this is something) echo SHELL 3.43 8.26098 2.66 3.10
Environment setup (OS ubuntu-24.04, lint) 1.78667 7.10044 2.31 3.08
No quotes allowed in labels 1.37667 6.68533 2.18 3.07

🌳 CO2 Data:
City: San Jose, Lat: 37.1835, Lon: -121.7714
IP: 52.234.46.144
CO₂ from energy is: 0.007659561 g
CO₂ from manufacturing (embodied carbon) is: 0.004031484 g
Carbon Intensity for this location: 273 gCO₂eq/kWh
SCI: 0.011691 gCO₂eq / pipeline run emitted

Copy link

github-actions bot commented Oct 19, 2024

Old Energy Estimation

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 5.47833 32.783 2.28 14.36
No quotes allowed in labels 11.095 7.31993 2.50 2.93
(Soo this is something) echo SHELL 4.81667 9.84849 3.17 3.11
Environment setup (OS ubuntu-20.04, lint) 2.83333 7.85063 2.55 3.08
No quotes allowed in labels 2.73 7.76399 2.53 3.07

🌳 CO2 Data:
City: San Jose, Lat: 37.1835, Lon: -121.7714
IP: 13.88.100.65
CO₂ from energy is: 0.008949759 g
CO₂ from manufacturing (embodied carbon) is: 0.004097106 g
Carbon Intensity for this location: 273 gCO₂eq/kWh
SCI: 0.013047 gCO₂eq / pipeline run emitted

Copy link

github-actions bot commented Oct 19, 2024

Old Energy Estimation

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 7.33583 33.0478 2.34 14.13
No quotes allowed in labels 15.2 7.58846 2.56 2.97
(Soo this is something) echo SHELL 6.31333 9.20236 2.97 3.10
Environment setup (OS ubuntu-20.04, lint) 5.22333 8.55257 2.79 3.07
No quotes allowed in labels 4.3 7.7044 2.52 3.06

🌳 CO2 Data:
City: Boydton, Lat: 36.6676, Lon: -78.3875
IP: 20.81.159.113
CO₂ from energy is: 0.011698638 g
CO₂ from manufacturing (embodied carbon) is: 0.004031484 g
Carbon Intensity for this location: 354 gCO₂eq/kWh
SCI: 0.015730 gCO₂eq / pipeline run emitted

Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 4.56417 32.2202 2.24 14.40
No quotes allowed in labels 9.165 7.18685 2.59 2.78
(Soo this is something) echo SHELL 3.83333 9.14877 2.93 3.12
Environment setup (OS ubuntu-22.04, lint) 3.25 8.56837 2.77 3.09
No quotes allowed in labels 2.00333 7.31617 2.38 3.08

🌳 CO2 Data:
City: San Jose, Lat: 37.1835, Lon: -121.7714
IP: 52.238.27.78
CO₂ from energy is: 0.008796060 g
CO₂ from manufacturing (embodied carbon) is: 0.004108519 g
Carbon Intensity for this location: 273 gCO₂eq/kWh
SCI: 0.012905 gCO₂eq / pipeline run emitted

Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 3.2725 28.6081 2.08 13.73
No quotes allowed in labels 8.305 6.37955 2.47 2.58
(Soo this is something) echo SHELL 2.9 8.02186 2.59 3.10
Environment setup (OS ubuntu-24.04, lint) 1.99667 7.31317 2.38 3.07
No quotes allowed in labels 1.58333 6.89354 2.25 3.07

🌳 CO2 Data:
City: Chicago, Lat: 41.8874, Lon: -87.6318
IP: 172.183.172.0
CO₂ from energy is: 0.010127232 g
CO₂ from manufacturing (embodied carbon) is: 0.003917359 g
Carbon Intensity for this location: 354 gCO₂eq/kWh
SCI: 0.014045 gCO₂eq / pipeline run emitted

@ArneTR ArneTR merged commit 67423c8 into main Oct 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant