Depends on the power consumption of the hardware of the computer and how the algorithm is realized in the software of the chip-this expresses how many clock cycles are required for a given operation. That's why it's more useful to compute the number of integer operations per second-that can, then be translated to watts, actually, i.e. joules/sec.
Everything depends on how you modify your algorithm ,CPU clock cycles to perform it , iteration process capacity of a processor for the running operation.Compare to the previous & the modified one.You'll understand. Better to apply on raw code.You can get the result in per/sec then convert it to j/s.In your needed result must have to know how many works the algorithm will perform in per second. - Thanks.