Package net.minecraftforge.common
Class ForgeConfigSpecTest
- java.lang.Object
-
- net.minecraftforge.common.ForgeConfigSpecTest
-
public class ForgeConfigSpecTest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classForgeConfigSpecTest.TestResult
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringTEST_CONFIG_PATH_TEMPLATEprivate intTEST_SIZE
-
Constructor Summary
Constructors Constructor Description ForgeConfigSpecTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeepKeySpeedTest()private <T> voidexecuteSpeedTest(java.lang.String configKey, T defaultKeyValue, java.lang.String testName)voidobjectSpeedTest()private <T> java.util.List<ForgeConfigSpecTest.TestResult>runTestHarness(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds)private <T> ForgeConfigSpecTest.TestResultrunTestOnce(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)voidsimpleSpeedTest()
-
-
-
Field Detail
-
TEST_CONFIG_PATH_TEMPLATE
private final java.lang.String TEST_CONFIG_PATH_TEMPLATE
- See Also:
- Constant Field Values
-
TEST_SIZE
private final int TEST_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
simpleSpeedTest
public void simpleSpeedTest() throws java.io.IOException- Throws:
java.io.IOException
-
objectSpeedTest
public void objectSpeedTest() throws java.io.IOException- Throws:
java.io.IOException
-
deepKeySpeedTest
public void deepKeySpeedTest() throws java.io.IOException- Throws:
java.io.IOException
-
executeSpeedTest
private <T> void executeSpeedTest(java.lang.String configKey, T defaultKeyValue, java.lang.String testName) throws java.io.IOException- Throws:
java.io.IOException
-
runTestHarness
private <T> java.util.List<ForgeConfigSpecTest.TestResult> runTestHarness(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds)
-
runTestOnce
private <T> ForgeConfigSpecTest.TestResult runTestOnce(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)
-
-