summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_instance-1.3-empty-gc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internal_bench/class_instance-1.3-empty-gc.py')
-rw-r--r--tests/internal_bench/class_instance-1.3-empty-gc.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/internal_bench/class_instance-1.3-empty-gc.py b/tests/internal_bench/class_instance-1.3-empty-gc.py
new file mode 100644
index 000000000..a5108ef8e
--- /dev/null
+++ b/tests/internal_bench/class_instance-1.3-empty-gc.py
@@ -0,0 +1,15 @@
+import bench
+import gc
+
+
+class X:
+ pass
+
+
+def test(num):
+ for i in range(num // 5):
+ x = X()
+ gc.collect()
+
+
+bench.run(test)