diff --git a/src/main/java/magma/tools/benchmark/model/bench/BenchmarkMain.java b/src/main/java/magma/tools/benchmark/model/bench/BenchmarkMain.java index e233a74..85eb69f 100755 --- a/src/main/java/magma/tools/benchmark/model/bench/BenchmarkMain.java +++ b/src/main/java/magma/tools/benchmark/model/bench/BenchmarkMain.java @@ -31,7 +31,6 @@ import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; -import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -361,7 +360,12 @@ public void run() if (stopped) { break; } + // System.out.println("test" + proxy.getAgentProxies().get(0).toStringVerbose()); } + ITeamResult teamResult = getCurrentTeamResult(); + String marker = "---------------------------"; + System.out.println(marker + "\nOverall average Score: " + teamResult.getScore() + "\n" + marker); + currentTeam++; if (stopped) { break; @@ -401,6 +405,12 @@ protected boolean performAverageOutRuns(TeamConfiguration currentTeamConfig, Run " " + config.getTrainerPort() + " " + scriptPath); } + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + boolean success = startTrainer(config, currentTeamConfig, runInfo, roboVizServer); if (success) { collectResults(currentRunResult); @@ -417,7 +427,7 @@ protected boolean performAverageOutRuns(TeamConfiguration currentTeamConfig, Run } } String marker = "---------------------------"; - System.out.println(marker + "\nAverage Score: " + currentRunResult.getScore() + "\n" + marker); + System.out.println(marker + "\nAverage " + avgRuns + " Score: " + currentRunResult.getScore() + "\n" + marker); return stopped; }