4 ms·
I did some research on this topic in university, and our consistent result for CPU-based programs was: if it finishes faster, it uses less energy, and vice vers
by tines 6y ago
I did some research on this topic in university, and our consistent result for CPU-based programs was: if it finishes faster, it uses less energy, and vice versa.
So it's no surprise to see that VM-based programs use more energy; they're slower.
- gameswithgo 6y agoPeople like to argue this point because there are rare exceptions when it isn't true, but yes, generally the faster the things finishes, the less energy you use. It is a fine rule of thumb to use in absence of direct power draw.
- corysama 6y agoIn SDK docs for the GameBoy Advance there was a note along the lines of "Even if your game is so simple that it does not require the full speed of the (16.78 MHz) machine, please put effort into optimizing it anyway so that it can spend more time sleeping in the low-power PAUSE instruction. Your players will notice the difference in battery drain and they will tell their friends."
- cozzyd 6y agoMemory usage matters too! Languages lacking shared memory multiprocessing will use more energy even if they're equally fast.
- tines 6y agoThat's a good point. DRAM only sucks power when you flip the bits right?
- cozzyd 6y agoWell it has to be constantly refreshed (I think?) if there's something important in it. But more I was thinking that you need more memory to support less-efficient memory usage in the first place, or, if the amount of memory is fixed, less of it would be used for things like the disk cache.