Permalink
Browse files

Removed JUnit references from ChunkTesselatorPerformanceTest to preve…

…nt IDE from running it. Made a standalone app out of test.
  • Loading branch information...
1 parent 26e8e6f commit 34e3ba1fcf0042783490bc7c3b0ebc547d94e37f @metamolecular metamolecular committed Feb 29, 2012
@@ -6,8 +6,6 @@
import java.util.ArrayList;
import java.util.List;
-import org.junit.BeforeClass;
-import org.junit.Test;
import org.lwjgl.Sys;
import org.terasology.game.Terasology;
import org.terasology.logic.world.Chunk;
@@ -20,16 +18,14 @@
*/
public class ChunkTessellatorPerformanceTest {
-
- @BeforeClass
- public static void beforeClass() throws Exception
- {
- Terasology.getInstance().init();
- }
-
- @Test
+ public static void main(String[] args) throws Exception {
+ ChunkTessellatorPerformanceTest test = new ChunkTessellatorPerformanceTest();
+
+ test.performanceTestChunkTessellator();
+ }
public void performanceTestChunkTessellator() throws Exception
{
+ Terasology.getInstance().init();
IWorldProvider worldProv = new LocalWorldProvider("Test", "ohnomelons");
long totalTime = 0;
PerformanceMonitor.setEnabled(false);
@@ -61,6 +57,7 @@ public void performanceTestChunkTessellator() throws Exception
{
System.out.println(String.format("%s: %.2fms", activities.get(i), values.get(i)));
}
+ Terasology.getInstance().shutdown();
}
private static void sortMetrics(TObjectDoubleMap<String> metrics, final List<String> activities, final List<Double> values) {

0 comments on commit 34e3ba1

Please sign in to comment.