circuitpython/tests/bench/funcall-1-inline.py
2021-03-15 19:27:36 +05:30

12 lines
192 B
Python

# Function call overhead test
# Establish a baseline for performing a trivial operation inline
import bench
def test(num):
for i in iter(range(num)):
a = i + 1
bench.run(test)