You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Language Python 3.10.12
Platform : Lenovo T570
CPU : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (x86_64)
RAM : 2133 MHz - 8GB
Measure justification
Using VJoule and 1000000 runs on two samples (a good one and a bad one), here are the results :
Processing rule EC2 - language python
RUNNING vjoule
TESTING good CASE
time 1s697ms87µs
PDU 0.00 J
CPU 13.48 J
RAM 0.96 J
GPU 0.24 J
----------------------
RUNNING vjoule
TESTING bad CASE
time 1s557ms165µs
PDU 0.00 J
CPU 12.59 J
RAM 0.74 J
GPU 0.15 J
----------------------
Validation
The measurement performed invalidates the rule for the pyhton language.
The percentage of certainty of this validation 70%, the results seem to vary from one run to the other, and in more than 50% of the runs the bad case performs better (less execution time, less CPU power, less RAM power, less GPU power) :
Associated rule title
AvoidMultipleIfElseStatement : do not use multiple if, else if, else statements
Associated rule link
https://github.com/green-code-initiative/ecoCode/blob/main/ecocode-rules-specifications/src/main/rules/EC2/python/EC2.asciidoc
Language and platform
Language Python 3.10.12
Platform : Lenovo T570
CPU : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (x86_64)
RAM : 2133 MHz - 8GB
Measure justification
Using VJoule and 1000000 runs on two samples (a good one and a bad one), here are the results :
Validation
The measurement performed
invalidates
the rule for the pyhton language.The percentage of certainty of this validation 70%, the results seem to vary from one run to the other, and in more than 50% of the runs the bad case performs better (less execution time, less CPU power, less RAM power, less GPU power) :
The text was updated successfully, but these errors were encountered: