Created
October 19, 2019 04:05
-
-
Save adrianmarkperea/2c2d2d9639ab80c6ad0e4a6da2d88ead to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
rng = np.random.RandomState(0) | |
# Create a lot of numbers | |
nums = rng.random(10000000) | |
# Decorate np.sort with our time_it transformer | |
timed_sort = time_it(np.sort) | |
# Perform the sort with our time_it functionality | |
timed_sort(nums) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment