diff options
Diffstat (limited to 'tests/internal_bench/class_instance-4-slots.py')
-rw-r--r-- | tests/internal_bench/class_instance-4-slots.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/internal_bench/class_instance-4-slots.py b/tests/internal_bench/class_instance-4-slots.py new file mode 100644 index 000000000..51b067fed --- /dev/null +++ b/tests/internal_bench/class_instance-4-slots.py @@ -0,0 +1,13 @@ +import bench + + +class X: + __slots__ = ["x"] + + +def test(num): + for i in range(num // 5): + x = X() + + +bench.run(test) |