4 ms·
Why? Running an empty loop a thousand times a second is literally almost nothing to any cpu released in the past 20yrs at least
by winrid 2y ago
Why? Running an empty loop a thousand times a second is literally almost nothing to any cpu released in the past 20yrs at least
- EasyMark 2y agoRunning an empty loop with no sleep or other yield type operation will peg one of your cores if you pin it to that core. Int main() { while(1) {} } compile that with -O0 and see what happens.
- 01HNNWZ0MV43FF 2y agoFor science, literal proving hypotheses science
- winrid 2y agoWell, I already run my setup through a kilowatt. I don't see a difference with Python, which you can argue should be 10-100x less efficient: import time while True: time.sleep(0.001) also the script itself it bounces between 0% and 1% cpu usage
- 01HNNWZ0MV43FF 2y agoWhat's the baseline? 30 watts or so?