We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27720a2 commit 05f6338Copy full SHA for 05f6338
1 file changed
tools/snippets/benchmark/python/numpy/benchmark.py
@@ -55,8 +55,8 @@ def print_results(elapsed):
55
56
def benchmark():
57
"""Run the benchmark and print benchmark results."""
58
- setup = "from numpy import TODO; from random import random;"
59
- stmt = "y = TODO(random())"
+ setup = "import numpy as np; from random import random;"
+ stmt = "y = np.TODO(random())"
60
61
t = timeit.Timer(stmt, setup=setup)
62
0 commit comments