Class GameTestsPerformance

java.lang.Object
org.cyclops.integrateddynamics.gametest.GameTestsPerformance

public class GameTestsPerformance extends Object
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 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:
    • APPEND_CABLE_COUNT

      public static final int APPEND_CABLE_COUNT
      See Also:
    • TEMPLATE_EMPTY

      public static final String TEMPLATE_EMPTY
      See Also:
    • START_POS

      public static final net.minecraft.core.BlockPos START_POS
    • LARGE_SIZE

      public static final int LARGE_SIZE
      See Also:
    • LARGE_START_POS

      public static final net.minecraft.core.BlockPos LARGE_START_POS
  • Constructor Details

    • GameTestsPerformance

      public GameTestsPerformance()
  • Method Details

    • testPerformanceEmptyNetwork

      public void testPerformanceEmptyNetwork(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceEmptyNetworkLarge

      public void testPerformanceEmptyNetworkLarge(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceControl

      public void testPerformanceControl(net.minecraft.gametest.framework.GameTestHelper helper)
      Measure without any network, as baseline for the other benchmarks.
    • 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

      public static void testPerformance(net.minecraft.gametest.framework.GameTestHelper helper, String networkName, Consumer<Runnable> networkConstructor)
    • testPerformance

      public static void testPerformance(net.minecraft.gametest.framework.GameTestHelper helper, String networkName, int size, Consumer<Runnable> networkConstructor, Runnable cleanup)