From b673701ee397ad6dba13a1f4cc93f71b28b787d9 Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 6 Apr 2011 19:41:47 +0000 Subject: [PATCH] change benchmark to run once, not up to seven times --- .../DelaunayRefinement/SerialDelaunayRefinement.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Robust/src/Benchmarks/oooJava/DelaunayRefinement/SerialDelaunayRefinement.java b/Robust/src/Benchmarks/oooJava/DelaunayRefinement/SerialDelaunayRefinement.java index 735a337e..7c34f87b 100644 --- a/Robust/src/Benchmarks/oooJava/DelaunayRefinement/SerialDelaunayRefinement.java +++ b/Robust/src/Benchmarks/oooJava/DelaunayRefinement/SerialDelaunayRefinement.java @@ -40,14 +40,16 @@ public class SerialDelaunayRefinement { long lasttime = 0x7fffffffffffffffL; long mintime = 0x7fffffffffffffffL; - for (long run = 0; ((run < 3) || Math.abs(lasttime - runtime) * 64 > Math.min(lasttime, runtime)) && run < 7; run++) { + for (long run = 0; // jjenista - JUST RUN ONCE! + run < 1; //((run < 3) || Math.abs(lasttime - runtime) * 64 > Math.min(lasttime, runtime)) && run < 7; + run++) { runtime = run(args); if (runtime < mintime) { mintime = runtime; } - System.out.println( "Post-run garbage collection started..." ); - System.gc(); - System.out.println( "done gc" ); + //System.out.println( "Post-run garbage collection started..." ); + //System.gc(); + //System.out.println( "done gc" ); } System.out.println("minimum runtime: " + mintime + " ms"); @@ -229,7 +231,6 @@ public class SerialDelaunayRefinement { } // end while( !worklist.isEmpty() ) - System.out.println( "yuh?" ); } // end sese workLoop // stall before runtime calc, this is an empty method -- 2.34.1