From: kiramt Date: Fri, 24 Nov 2017 14:56:35 +0000 (+0000) Subject: JAL-2759 update benchmark code X-Git-Tag: Release_2_10_4~55^2~1^2~52 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ae8e87026433f45e89354c0bedd19dfcd3e04d55;p=jalview.git JAL-2759 update benchmark code --- diff --git a/benchmarking/src/main/java/org/jalview/HiddenColumnsBenchmark.java b/benchmarking/src/main/java/org/jalview/HiddenColumnsBenchmark.java index ae2d628..c0b4d4b 100644 --- a/benchmarking/src/main/java/org/jalview/HiddenColumnsBenchmark.java +++ b/benchmarking/src/main/java/org/jalview/HiddenColumnsBenchmark.java @@ -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