diff options
Diffstat (limited to 'tests/internal_bench/var-6-instance-attr.py')
-rw-r--r-- | tests/internal_bench/var-6-instance-attr.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/internal_bench/var-6-instance-attr.py b/tests/internal_bench/var-6-instance-attr.py index 787ed870f..0124ef51b 100644 --- a/tests/internal_bench/var-6-instance-attr.py +++ b/tests/internal_bench/var-6-instance-attr.py @@ -1,14 +1,16 @@ import bench -class Foo: +class Foo: def __init__(self): self.num = 20000000 + def test(num): o = Foo() i = 0 while i < o.num: i += 1 + bench.run(test) |