Class GameTestsPerformanceIngredientIndex

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

public class GameTestsPerformanceIngredientIndex extends Object
Performance benchmarks for IngredientPositionsIndex. These measure the index lookups that storage networks perform on every insertion and extraction. This is not covered by the network tick time benchmarks in GameTestsPerformance, as those do not contain any storage positions. Results are written to runs/gameTestServer/logs/benchmark_results.txt for CI processing.
  • Field Details

  • Constructor Details

    • GameTestsPerformanceIngredientIndex

      public GameTestsPerformanceIngredientIndex()
  • Method Details

    • testPerformanceIndexLookupExact

      public void testPerformanceIndexLookupExact(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupItem

      public void testPerformanceIndexLookupItem(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupNonEmptyFirst

      public void testPerformanceIndexLookupNonEmptyFirst(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupNonEmptyAll

      public void testPerformanceIndexLookupNonEmptyAll(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexModification

      public void testPerformanceIndexModification(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupExactSingleItem

      public void testPerformanceIndexLookupExactSingleItem(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexModificationSingleItem

      public void testPerformanceIndexModificationSingleItem(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupExactFewItems

      public void testPerformanceIndexLookupExactFewItems(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexModificationFewItems

      public void testPerformanceIndexModificationFewItems(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupExactHeavyComponents

      public void testPerformanceIndexLookupExactHeavyComponents(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexModificationHeavyComponents

      public void testPerformanceIndexModificationHeavyComponents(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupExactPlain

      public void testPerformanceIndexLookupExactPlain(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupItemPlain

      public void testPerformanceIndexLookupItemPlain(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexModificationPlain

      public void testPerformanceIndexModificationPlain(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupExactMixed

      public void testPerformanceIndexLookupExactMixed(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupItemMixed

      public void testPerformanceIndexLookupItemMixed(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexModificationMixed

      public void testPerformanceIndexModificationMixed(net.minecraft.gametest.framework.GameTestHelper helper)
    • testPerformanceIndexLookupItemSingleItem

      public void testPerformanceIndexLookupItemSingleItem(net.minecraft.gametest.framework.GameTestHelper helper)
    • count

      protected static int count(Iterator<?> iterator)
    • benchmark

      protected static void benchmark(net.minecraft.gametest.framework.GameTestHelper helper, String name, int operations, Function<GameTestsPerformanceIngredientIndex.Fixture, IntUnaryOperator> operationFactory)
      Run the given operation on a freshly constructed index, and append its average execution time to the benchmark results.
      Parameters:
      helper - A game test helper.
      name - The benchmark name.
      operations - The number of measured operations.
      operationFactory - A factory for the operation to measure, taking an operation index.
    • benchmark

      protected static void benchmark(net.minecraft.gametest.framework.GameTestHelper helper, String name, int operations, GameTestsPerformanceIngredientIndex.Shape shape, Function<GameTestsPerformanceIngredientIndex.Fixture, IntUnaryOperator> operationFactory)