Power consumption measurement

Thank you for your answers. For sure a scope or a power meter would give me some more detailed information. I was thinking though that since my goal is just a comparison between algorithms, if I use something like PowerTOP I could simply watch what is the difference between the measurements in terms of power consumed. The algorithm with the lowest value is the most efficient one.
Could this work?

Thank you for your answers. For sure a scope or a power meter would give me
some more detailed information. I was thinking though that since my goal is
just a comparison between algorithms, if I use something like PowerTOP I
could simply watch what is the difference between the measurements in terms
of power consumed. The algorithm with the lowest value is the most
efficient one.
Could this work?

It depends. If your meter responds very rapidly, then it can follow the
peaks and valleys as your code vs other code executes. If your code
runs long enough at a time then a relatively slow meter will work. If
the system spends relatively little time executing your code then a
scope is almost a must.

John