1import time
2t0= time.clock()
3print("Hello")
4t1 = time.clock() - t0
5print("Time elapsed: ", t1 - t0) # CPU seconds elapsed (floating point)
1Speed Up Compile Time:
2
31. Use correct data structure
42. Try to minimize use of for loop
53. Use less global variables