Module Import alias Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Num Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad
N/A N/A timeit N/A normal_py_sec N/A N/A timeit timeit sum(x*x for x in range(1000)) number 10000 N/A naive_np_sec N/A N/A timeit timeit sum(na*na) setup import numpy as np; na=np.arange(1000) number 10000 N/A good_np_sec N/A N/A timeit timeit na.dot(na) setup import numpy as np; na=np.arange(1000) number 10000 N/A N/A Normal Python: %f sec normal_py_sec N/A N/A Naive NumPy: %f sec naive_np_sec N/A N/A Good NumPy: %f sec good_np_sec