tests: update benchs*.nit to have a common default time and an non-linear grow
[nit.git] / tests / bench_complex_sort.nit
index 116d7d7..e05cb45 100644 (file)
@@ -74,8 +74,9 @@ class E
 end
 
 class EltComparator
-       super Comparator[Elt]
-       redef fun compare(a: Elt, b: Elt): Int
+       super Comparator
+       redef type COMPARED: Elt
+       redef fun compare(a, b)
        do
                if _is_val1 then
                        return a.val1 <=> b.val1
@@ -110,7 +111,7 @@ do
        end
 end
 
-var n = 100
+var n = 20
 
 if not args.is_empty then
        n = args.first.to_i