mirror of
https://github.com/micropython/micropython.git
synced 2026-05-01 13:20:14 +02:00
6d09d3e76e
This commit adds tests to benchmark the performance of class instantiation. Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
12 lines
106 B
Python
12 lines
106 B
Python
import bench
|
|
|
|
X = object
|
|
|
|
|
|
def test(num):
|
|
for i in range(num // 5):
|
|
x = X()
|
|
|
|
|
|
bench.run(test)
|