From ae8e87026433f45e89354c0bedd19dfcd3e04d55 Mon Sep 17 00:00:00 2001 From: kiramt Date: Fri, 24 Nov 2017 14:56:35 +0000 Subject: [PATCH] JAL-2759 update benchmark code --- .../src/main/java/org/jalview/HiddenColumnsBenchmark.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 1.7.10.2