summaryrefslogtreecommitdiff
path: root/tests/internal_bench/funcall-2-funcall.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internal_bench/funcall-2-funcall.py')
-rw-r--r--tests/internal_bench/funcall-2-funcall.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/internal_bench/funcall-2-funcall.py b/tests/internal_bench/funcall-2-funcall.py
index d5c36c60a..a24525804 100644
--- a/tests/internal_bench/funcall-2-funcall.py
+++ b/tests/internal_bench/funcall-2-funcall.py
@@ -2,11 +2,14 @@
# Perform the same trivial operation as global function call
import bench
+
def f(x):
return x + 1
+
def test(num):
for i in iter(range(num)):
a = f(i)
+
bench.run(test)