summaryrefslogtreecommitdiffstatshomepage
path: root/tests/internal_bench/funcall-3-funcall-local.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internal_bench/funcall-3-funcall-local.py')
-rw-r--r--tests/internal_bench/funcall-3-funcall-local.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/internal_bench/funcall-3-funcall-local.py b/tests/internal_bench/funcall-3-funcall-local.py
index 1a6d728c63..d922888685 100644
--- a/tests/internal_bench/funcall-3-funcall-local.py
+++ b/tests/internal_bench/funcall-3-funcall-local.py
@@ -5,12 +5,15 @@
# variables are accessed by offset, not by name)
import bench
+
def f(x):
return x + 1
+
def test(num):
f_ = f
for i in iter(range(num)):
a = f_(i)
+
bench.run(test)