JAL-2759 update benchmark code
authorkiramt <k.mourao@dundee.ac.uk>
Fri, 24 Nov 2017 14:56:35 +0000 (14:56 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Fri, 24 Nov 2017 14:56:35 +0000 (14:56 +0000)
benchmarking/src/main/java/org/jalview/HiddenColumnsBenchmark.java

index ae2d628..c0b4d4b 100644 (file)
@@ -54,7 +54,7 @@ public class HiddenColumnsBenchmark
        @State(Scope.Thread)
        public static class HiddenColsAndStartState
        {
-               @Param({"300", "10000", "100000"})
+               @Param({"100", "1000", "10000", "100000", "1000000"})
                public int maxcols;
                
                @Param({"1", "50", "90"})
@@ -98,7 +98,7 @@ public class HiddenColumnsBenchmark
        
        /* Convention: functions in alphabetical order */
        
-/*     @Benchmark
+       @Benchmark
        @BenchmarkMode({Mode.Throughput})
        public int benchAdjustForHiddenColumns(HiddenColsAndStartState tstate)
        {
@@ -118,7 +118,7 @@ public class HiddenColumnsBenchmark
     {
                return tstate.h.getSize();
     }
-*/
+
    @Benchmark
     @BenchmarkMode({Mode.Throughput})
     public HiddenColumns benchHideCols(HiddenColsAndStartState tstate) 
@@ -127,7 +127,7 @@ public class HiddenColumnsBenchmark
                        tstate.visibleColumn+2000); 
        return tstate.h;
     }
-   /*
+   
        @Benchmark
        @BenchmarkMode({Mode.Throughput})
     public boolean benchIsVisible(HiddenColsAndStartState tstate) 
@@ -152,6 +152,6 @@ public class HiddenColumnsBenchmark
        tstate.h.revealAllHiddenColumns(sel);
        return tstate.h;
     }
-       */
+       
        
 }
\ No newline at end of file