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