Class GameTestsPerformance
java.lang.Object
org.cyclops.integrateddynamics.gametest.GameTestsPerformance
Game tests for performance benchmarking of network operations.
These tests generate networks with different presets and measure their performance.
Results are written to run/logs/benchmark_results.txt for CI processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final net.minecraft.core.BlockPosstatic final Stringstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidtestPerformance(net.minecraft.gametest.framework.GameTestHelper helper, String networkName, Consumer<Runnable> networkConstructor) voidtestPerformanceEmptyNetwork(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceEmptyNetworkAppend(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceEmptyNetworkAppendParts(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceEmptyNetworkRemove(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceIdleNetwork(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceIdleNetworkAppend(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceRedstoneNetwork(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceRedstoneNetworkAppendParts(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceRedstoneNetworkRemove(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPerformanceRedstoneNetworkVariables(net.minecraft.gametest.framework.GameTestHelper helper)
-
Field Details
-
EXECUTION_SECONDS
public static final int EXECUTION_SECONDS- See Also:
-
WARMUP_TICKS
public static final int WARMUP_TICKS- See Also:
-
RADIUS
public static final int RADIUS- See Also:
-
TEMPLATE_EMPTY
- See Also:
-
START_POS
public static final net.minecraft.core.BlockPos START_POS
-
-
Constructor Details
-
GameTestsPerformance
public GameTestsPerformance()
-
-
Method Details
-
testPerformanceEmptyNetwork
public void testPerformanceEmptyNetwork(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceIdleNetwork
public void testPerformanceIdleNetwork(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceRedstoneNetwork
public void testPerformanceRedstoneNetwork(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceRedstoneNetworkVariables
public void testPerformanceRedstoneNetworkVariables(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceEmptyNetworkAppend
public void testPerformanceEmptyNetworkAppend(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceIdleNetworkAppend
public void testPerformanceIdleNetworkAppend(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceEmptyNetworkRemove
public void testPerformanceEmptyNetworkRemove(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceRedstoneNetworkRemove
public void testPerformanceRedstoneNetworkRemove(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceEmptyNetworkAppendParts
public void testPerformanceEmptyNetworkAppendParts(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformanceRedstoneNetworkAppendParts
public void testPerformanceRedstoneNetworkAppendParts(net.minecraft.gametest.framework.GameTestHelper helper) -
testPerformance
-