summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_instance-0.1-object-gc.py
blob: 7c475963a8e81a1d71b344a8a8bd257dc642c135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import bench
import gc

X = object


def test(num):
    for i in range(num // 5):
        x = X()
    gc.collect()


bench.run(test)