mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 05:10:15 +02:00
b9d6d6af4b
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
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)
|