smbinterp/tools/timing/load_pickle.py

14 lines
198 B
Python
Raw Normal View History

import sys
import pickle
import time
import scipy.spatial
start = time.time()
g = pickle.load(open(sys.argv[1], 'r'))
g.tree = scipy.spatial.KDTree(g.points)
end = time.time()
print end - start