Files
micropython/tests/internal_bench/class_create-6.3-descriptor.py
2025-07-29 10:08:53 +10:00

18 lines
214 B
Python

import bench
class D:
def __get__(self, instance, owner=None):
pass
def test(num):
descriptor = D()
for i in range(num // 40):
class X:
x = descriptor
bench.run(test)