Skip to content

Instantly share code, notes, and snippets.

@sandor-nemeth
Created November 15, 2021 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandor-nemeth/a80e774fbf9b17527bc19274ffe1da96 to your computer and use it in GitHub Desktop.
Save sandor-nemeth/a80e774fbf9b17527bc19274ffe1da96 to your computer and use it in GitHub Desktop.
Perf test python perf on Macbook
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