summaryrefslogtreecommitdiffstatshomepage
path: root/tests/internal_bench/funcall-2-funcall.py
blob: a245258040be8fb3e7fdae7d37f3092dc40dc45b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Function call overhead test
# 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)