Skip to content

Commit 05f6338

Browse files
committed
Update NumPy import
1 parent 27720a2 commit 05f6338

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/snippets/benchmark/python/numpy/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def print_results(elapsed):
5555

5656
def benchmark():
5757
"""Run the benchmark and print benchmark results."""
58-
setup = "from numpy import TODO; from random import random;"
59-
stmt = "y = TODO(random())"
58+
setup = "import numpy as np; from random import random;"
59+
stmt = "y = np.TODO(random())"
6060

6161
t = timeit.Timer(stmt, setup=setup)
6262

0 commit comments

Comments
 (0)