I am doing some performance testing on ffmpeg and how long it takes for it to convert different video formats of different sizes on my server. I have written a shell script to do this with help from this forum.
Now, I would like to determine how much processing power it takes. Is there a way I can do this? Maybe make use of the PID of the process I am running and get how much process power its using? Is this not a good test on performance since there are too many factors to consider?