mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests/internal_bench/class_create: Benchmark class creation.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
This commit is contained in:
committed by
Damien George
parent
d5dc554742
commit
c3e77ad6db
@@ -0,0 +1,12 @@
|
||||
import bench
|
||||
|
||||
|
||||
def test(num):
|
||||
for i in range(num // 40):
|
||||
|
||||
class X:
|
||||
def __new__(cls):
|
||||
pass
|
||||
|
||||
|
||||
bench.run(test)
|
||||
Reference in New Issue
Block a user