summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bench/funcall-2-funcall.py
blob: d5c36c60aab69264a8d7e17c6fc6e6210fe9de7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# 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)