From 0148becaf374eb039989936877574c961f8783ec Mon Sep 17 00:00:00 2001
From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de>
Date: Wed, 20 May 2015 12:37:43 +0200
Subject: [PATCH] removed obsolete class file

---
 .../util/test/framework/PerformanceTest.java  | 87 -------------------
 1 file changed, 87 deletions(-)
 delete mode 100644 src/test/java/teetime/util/test/framework/PerformanceTest.java

diff --git a/src/test/java/teetime/util/test/framework/PerformanceTest.java b/src/test/java/teetime/util/test/framework/PerformanceTest.java
deleted file mode 100644
index 813ffc69..00000000
--- a/src/test/java/teetime/util/test/framework/PerformanceTest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * Copyright (C) 2015 Christian Wulf, Nelson Tavares de Sousa (http://teetime.sourceforge.net)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *         http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package teetime.util.test.framework;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.concurrent.TimeUnit;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.rules.TestRule;
-import org.junit.rules.TestWatcher;
-import org.junit.runner.Description;
-
-import teetime.util.StopWatch;
-import teetime.util.TimestampObject;
-import teetime.util.test.eval.PerformanceResult;
-import teetime.util.test.eval.StatisticsUtil;
-
-public abstract class PerformanceTest {
-
-	protected static final PerformanceCheckProfileRepository PERFORMANCE_CHECK_PROFILE_REPOSITORY = PerformanceCheckProfileRepository.INSTANCE;
-	protected static final int NUM_OBJECTS_TO_CREATE = 1000000;
-	protected static final int NUM_NOOP_FILTERS = 800;
-
-	public static final MeasurementRepository measurementRepository = new MeasurementRepository();
-
-	protected Description description;
-
-	protected StopWatch stopWatch;
-	protected List<TimestampObject> timestampObjects;
-
-	static {
-		System.setProperty("logback.configurationFile", "src/test/resources/logback.groovy");
-	}
-
-	@Rule
-	public final TestRule watcher = new TestWatcher() {
-		@Override
-		protected void starting(final Description description) {
-			PerformanceTest.this.description = description;
-			// System.out.println("getDisplayName(): " + description.getDisplayName());
-		}
-	};
-
-	@Before
-	public void before() {
-		this.stopWatch = new StopWatch();
-		this.timestampObjects = new ArrayList<TimestampObject>(NUM_OBJECTS_TO_CREATE);
-	}
-
-	@After
-	public void after() {
-		String testMethodIdentifier = MeasurementRepository.buildTestMethodIdentifier(description.getTestClass(), description.getMethodName());
-		PerformanceResult performanceResult = StatisticsUtil.computeStatistics(this.stopWatch.getDurationInNs(), this.timestampObjects);
-		measurementRepository.performanceResults.put(testMethodIdentifier, performanceResult);
-
-		addToRepository(performanceResult);
-
-		System.out.println("Duration: " + TimeUnit.NANOSECONDS.toMillis(performanceResult.overallDurationInNs) + " ms");
-		System.out.println("avg duration: " + TimeUnit.NANOSECONDS.toMicros(performanceResult.avgDurInNs) + " µs");
-		System.out.println(StatisticsUtil.getQuantilesString(performanceResult.quantiles));
-		System.out.println("confidenceWidth: " + performanceResult.confidenceWidthInNs + " ns");
-		System.out.println("[" + TimeUnit.NANOSECONDS.toMicros(performanceResult.avgDurInNs - performanceResult.confidenceWidthInNs) + " µs, "
-				+ TimeUnit.NANOSECONDS.toMicros(performanceResult.avgDurInNs + performanceResult.confidenceWidthInNs) + " µs]");
-	}
-
-	@Deprecated
-	private void addToRepository(final PerformanceResult performanceResult) {
-		measurementRepository.performanceResults.put(this.description.getDisplayName(), performanceResult);
-	}
-
-}
-- 
GitLab