tests: update benchs*.nit to have a common default time and an non-linear grow
[nit.git] / tests / bench_send.nit
index 2a7fa1b..5659ee1 100644 (file)
@@ -16,7 +16,7 @@
 
 
 class A
-       readable writable var _val: Int = 0
+       var val: Int = 0
        fun hop(a: A, b: A, c: A)
        do
                if a.val > val then
@@ -52,7 +52,7 @@ class A
 end
 
 class B
-special A
+       super A
        redef fun val: Int
        do
                return 1
@@ -64,7 +64,7 @@ special A
 end
 
 class C
-special A
+       super A
        redef fun val: Int
        do
                return 2
@@ -76,7 +76,7 @@ special A
 end
 
 class D
-special A
+       super A
        redef fun val: Int
        do
                return 3
@@ -97,7 +97,11 @@ b.val = 1
 c.val = 2
 d.val = 3
 var i = 0
-while i < 100000 do
+
+var n = 10
+if args.not_empty then n = args.first.to_i
+
+while i < 1.lshift(n) do
        a.hop(b, c, d)
        i = i + 1
 end