Calculate Processing Efficiency In Python Code