Skip to content
Snippets Groups Projects
Commit ecb6a540 authored by Christian Wulf's avatar Christian Wulf
Browse files

moved some files

parent 37b5928a
No related branches found
No related tags found
No related merge requests found
package util;
import java.io.File;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
public class MooBenchStarter {
private final File execDir;
public MooBenchStarter() {
this.execDir = new File("scripts/MooBench-cmd");
System.out.println("execDir: " + this.execDir.getAbsolutePath());
}
public void start(final int runs, final long calls) throws IOException {
final List<String> command = new LinkedList<String>();
command.add("cmd");
command.add("/c");
command.add("start");
command.add("/D");
command.add(this.execDir.getAbsolutePath());
command.add("Load Driver");
command.add("startMooBench.cmd");
command.add(String.valueOf(runs));
command.add(String.valueOf(calls));
new ProcessBuilder(command).start();
}
}
......@@ -2,6 +2,8 @@ package util.test;
import java.util.Map;
import util.test.eval.StatisticsUtil;
public class PerformanceResult {
public long overallDurationInNs;
......
package util;
package util.test.eval;
import java.io.BufferedReader;
import java.io.File;
......@@ -11,8 +11,6 @@ import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import util.test.StatisticsUtil;
import com.google.common.base.Charsets;
import com.google.common.io.CharSource;
import com.google.common.io.Files;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************/
package util.test;
package util.test.eval;
import java.util.ArrayList;
import java.util.Collections;
......@@ -26,6 +26,7 @@ import java.util.concurrent.TimeUnit;
import teetime.util.MathUtil;
import teetime.util.TimestampObject;
import util.test.PerformanceResult;
/**
* @author Christian Wulf
......
......@@ -7,7 +7,7 @@ import java.util.Map;
import org.junit.Test;
import util.test.StatisticsUtil;
import util.test.eval.StatisticsUtil;
public class StopWatchTest {
......
......@@ -13,6 +13,7 @@ import org.junit.runner.Description;
import teetime.util.StopWatch;
import teetime.util.TimestampObject;
import util.test.eval.StatisticsUtil;
public abstract class PerformanceTest {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment