Improved performance of Part 1 example by taking the sum first instead of using mean()/np.mean(), and added total runtime/average framerate calculation to the output.