I am not sure what you are trying to measure but as far I can see the measure should be the time and you can do that.
There's a correlation between code size and execution time, but it is not a directly proportional thing.