mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
18 lines
178 B
Python
18 lines
178 B
Python
import bench
|
|
|
|
|
|
class Foo:
|
|
@property
|
|
def num(self):
|
|
return 20000000
|
|
|
|
|
|
def test(num):
|
|
o = Foo()
|
|
i = 0
|
|
while i < o.num:
|
|
i += 1
|
|
|
|
|
|
bench.run(test)
|