Files
micropython/tests/internal_bench/var-6.3-instance-property.py
2025-07-29 10:08:53 +10:00

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)