mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 09:30:24 +08:00
69cbec4afb
Inspired by discussion in #577. So, in this case of builtin function, passing args by keyword has less than 1% overhead.
8 lines
110 B
Python
8 lines
110 B
Python
import bench
|
|
|
|
def test(num):
|
|
for i in iter(range(num//20)):
|
|
enumerate([1, 2], 1)
|
|
|
|
bench.run(test)
|