mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
10 lines
190 B
Python
10 lines
190 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)
|