summaryrefslogtreecommitdiff
path: root/tests/bench/var-5-class-attr.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bench/var-5-class-attr.py')
-rw-r--r--tests/bench/var-5-class-attr.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bench/var-5-class-attr.py b/tests/bench/var-5-class-attr.py
new file mode 100644
index 000000000..02ae874ac
--- /dev/null
+++ b/tests/bench/var-5-class-attr.py
@@ -0,0 +1,11 @@
+import bench
+
+class Foo:
+ num = 20000000
+
+def test(num):
+ i = 0
+ while i < Foo.num:
+ i += 1
+
+bench.run(test)