Skip to content

Instantly share code, notes, and snippets.

@wenweixu
Created February 19, 2020 19:16
Show Gist options
  • Save wenweixu/1700574b4ba697574fb4f828fde2c0b5 to your computer and use it in GitHub Desktop.
Save wenweixu/1700574b4ba697574fb4f828fde2c0b5 to your computer and use it in GitHub Desktop.
import time
import numpy as np
r_arr = np.meshgrid(range(10000),range(10000))
c_arr = np.meshgrid(range(10000),range(10000))
start = time.time()
z_arr = r_arr + c_arr
print(time.time() - start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment