Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 189 Bytes
import sys
import numpy as np
s = range(1000)
print('Python list: ')
print(sys.getsizeof(5) * len(s))
print()
d = np.arange(1000)
print('NumPy array: ')
print(d.size * d.itemsize)
quit()
You can’t perform that action at this time.