Re-enabled localMergerRepeatedEfficiencyTests.
@@ -86,23 +86,22 @@ public class MergerEfficiencyTests {
Assertions.assertEquals(764288, numEdges);
}
-// @Test
-// @Disabled
-// public void localMergerRepeatedEfficiencyTests() {
-// ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
-//
-// for(int k = 10; k -- != 0;) {
-// long timeBefore = threadMXBean.getCurrentThreadCpuTime();
-// var merger = new CGMerger(depSet);
-// var result = merger.mergeAllDeps();
-// long timeAfter = threadMXBean.getCurrentThreadCpuTime();
-//
-// double secondsTaken = (timeAfter - timeBefore) / 1e9;
-// DecimalFormat df = new DecimalFormat("###.###");
-// int numNodes = result.numNodes();
-// long numEdges = result.numArcs();
-// System.out.println("CPU time used for merging: " + df.format(secondsTaken) + " seconds." +
-// " Merged graph has " + numNodes + " nodes and " + numEdges + " edges.");
-// }
-// }
+ @Test
+ public void localMergerRepeatedEfficiencyTests() {
+ ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
+
+ for(int k = 10; k -- != 0;) {
+ long timeBefore = threadMXBean.getCurrentThreadCpuTime();
+ var merger = new CGMerger(depSet);
+ var result = merger.mergeAllDeps();
+ long timeAfter = threadMXBean.getCurrentThreadCpuTime();
+
+ double secondsTaken = (timeAfter - timeBefore) / 1e9;
+ DecimalFormat df = new DecimalFormat("###.###");
+ int numNodes = result.numNodes();
+ long numEdges = result.numArcs();
+ System.out.println("CPU time used for merging: " + df.format(secondsTaken) + " seconds." +
+ " Merged graph has " + numNodes + " nodes and " + numEdges + " edges.");
+ }
+ }
}
