submited by

Style Pass

import numpy as np from time import time INPUT1 = np.arange(0, 1_000_000, dtype=np.int32) INPUT2 = np.arange(2, 1_000_002, dtype=np.int32) assert INPUT1.shape == INPUT2.shape

import numpy as np from time import time INPUT1 = np.arange(0, 1_000_000, dtype=np.int32) INPUT2 = np.arange(2, 1_000_002, dtype=np.int32) assert INPUT1.shape == INPUT2.shape

Read more pythonspeed....