Disabled instantiate and spawnable benchmarks

This commit is contained in:
srikappa-amzn
2021-06-11 11:38:49 -07:00
parent 2722ed46c3
commit 4c6bd5fcb7
3 changed files with 9 additions and 12 deletions
@@ -41,19 +41,15 @@ namespace Benchmark
{
newInstances[instanceCounter] = m_prefabSystemComponent->InstantiatePrefab(templateToInstantiateId);
}
state.PauseTiming();
ResetPrefabSystem();
state.ResumeTiming();
}
state.SetComplexityN(numInstances);
}
}/*
BENCHMARK_REGISTER_F(BM_PrefabInstantiate, InstantiatePrefab_SingleEntityInstance)
->RangeMultiplier(10)
->Range(100, 10000)
->Unit(benchmark::kMillisecond)
->Complexity();
->Complexity();*/
}
#endif
@@ -37,17 +37,18 @@ namespace Benchmark
AzFramework::Spawnable spawnable;
AzToolsFramework::Prefab::SpawnableUtils::CreateSpawnable(spawnable, prefabDom);
ResetPrefabSystem();
state.ResumeTiming();
}
state.SetComplexityN(numSpawnables);
}
/*
BENCHMARK_REGISTER_F(BM_SpawnableCreate, CreateSpawnable_SingleEntityInstance)
->RangeMultiplier(10)
->Range(100, 10000)
->Unit(benchmark::kMillisecond)
->Complexity();
->Complexity();*/
}
#endif
+4 -4
View File
@@ -20,8 +20,8 @@ endif()
# Tests
################################################################################
foreach(suite_name ${LY_TEST_GLOBAL_KNOWN_SUITE_NAMES})
if(PAL_TRAIT_TEST_LYTESTTOOLS_SUPPORTED)
if(PAL_TRAIT_TEST_LYTESTTOOLS_SUPPORTED)
foreach(suite_name ${LY_TEST_GLOBAL_KNOWN_SUITE_NAMES})
ly_add_pytest(
NAME pytest_sanity_${suite_name}_no_gpu
PATH ${CMAKE_CURRENT_LIST_DIR}/sanity_test.py
@@ -34,8 +34,8 @@ foreach(suite_name ${LY_TEST_GLOBAL_KNOWN_SUITE_NAMES})
TEST_SUITE ${suite_name}
TEST_REQUIRES gpu
)
endif()
endforeach()
endforeach()
endif()
# EPB Sanity test is being registered here to validate that the ly_add_editor_python_test function works.
#if(PAL_TRAIT_BUILD_HOST_TOOLS AND PAL_TRAIT_BUILD_TESTS_SUPPORTED AND AutomatedTesting IN_LIST LY_PROJECTS_TARGET_NAME)