2014-06-19 03:20:34 +03:00
|
|
|
# Function call overhead test
|
|
|
|
# Establish a baseline for performing a trivial operation inline
|
|
|
|
import bench
|
|
|
|
|
2021-03-15 19:27:36 +05:30
|
|
|
|
2014-06-19 03:20:34 +03:00
|
|
|
def test(num):
|
|
|
|
for i in iter(range(num)):
|
|
|
|
a = i + 1
|
|
|
|
|
2021-03-15 19:27:36 +05:30
|
|
|
|
2014-06-19 03:20:34 +03:00
|
|
|
bench.run(test)
|