Created
November 15, 2021 10:45
-
-
Save sandor-nemeth/a80e774fbf9b17527bc19274ffe1da96 to your computer and use it in GitHub Desktop.
Perf test python perf on Macbook
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 numpy | |
import time as time | |
print("STARTED") | |
multiple = 100000000 | |
data = numpy.random.rand(multiple) | |
tic = time.perf_counter() | |
sorted = numpy.sort(data, kind = "stable") | |
toc = time.perf_counter() | |
print(f"in {toc - tic:0.4f} seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment