Comments (3)
I take advantage of this issue to add that the return in seconds seems strange to me.
Indeed, I get results such as [9643.0]
, [12817.0]
for a code that runs in 0.4 seconds
Here is the code
import pyRAPL
pyRAPL.setup()
baz = pyRAPL.Measurement("baz")
baz.begin()
list(range(10000))
baz.end()
print(baz.result.dram)
# [12024.0]
from pyrapl.
In the class DramAPI, the file read is energy_uj same name as the one in PkgAPI, guessing that it means energy in micro joule.
from pyrapl.
I would also say, that there is an error in the documentation. The average power that 8gb of RAM require is approx 3W (as a rule of thumb). I ran pyRAPL on just my system for 10 minutes and recorded the energy usage per second into a file.
The results show, that my RAM (of which 0.96GB were allocated at that time) would consume 2063.622961J which corresponds to a power demand of approx 3.439371W.
This would somewhat approve the assumption of the output being displayed in micro Joules for the RAM as well.
from pyrapl.
Related Issues (16)
- API proposal HOT 2
- GPU support HOT 1
- iteration HOT 2
- Measurements of multiple functions HOT 1
- @pyRAPL.measure in demo code returns error: AttributeError: module 'pyRAPL' has no attribute 'measure' HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/system/cpu/present' i.e. Windows support HOT 1
- Windows os error HOT 1
- Measurements error HOT 3
- pyRAPL breaks pytest HOT 1
- Negative energy_uj measurement
- Add mongodb output class
- Portability
- change save methode to asynchrone in csv/mongo output
- QuickStart :
- revert the measure unit back to uJ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrapl.