micropython/tests/bench/loop_count-2-range_iter.py

8 lines
90 B
Python

import bench
def test(num):
for i in iter(range(num)):
pass
bench.run(test)