import time # Large arrays size = 1000000 a = np.random.random(size) b = np.random.random(size) # Time NumPy start = time.time() result = a + b numpy_time = time.time() - start print(f"NumPy time: {numpy_time:.4f} seconds") # Typically 100x faster than pure Python!