o3de icon indicating copy to clipboard operation
o3de copied to clipboard

Add performance test for assigning a model asset to mesh component

Open junbo75 opened this issue 3 years ago • 0 comments

Signed-off-by: Junbo Liang [email protected]

What does this PR do?

Add a performance test for assigning a model asset to mesh component for 100K times

How was this PR tested?

Test passed locally:

D:\github\o3de>python\python.cmd -m pytest --build-directory D:\github\o3de\build\windows\bin\profile D:\github\o3de\AutomatedTesting\Gem\PythonTests\assetpipeline\TestSuite_Periodic.py
Pytest custom argument "--output-path" was not provided, defaulting Test Results output to: D:\github\o3de\build\windows\bin\profile\Testing\LyTestTools\pytest_results\2022-12-02T15-58-38-714087
================================================= test session starts =================================================
platform win32 -- Python 3.10.5, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
rootdir: D:\github\o3de, configfile: pytest.ini
plugins: mock-3.8.2, timeout-2.1.0, ly-test-tools-1.0.0
timeout: 1200.0s
timeout method: thread
timeout func_only: False
collected 1 item

AutomatedTesting\Gem\PythonTests\assetpipeline\TestSuite_Periodic.py .                                           [100%]

============================================ 1 passed in 64.08s (0:01:04) =============================================

The time it took to assign the model asset to the mesh component and do the validation:

<15:59:39> (python_test) - Info: AssetSystem_PerformanceTestingOnBasicWorkflow_AssignModelAssetToMeshComponentFor100kTime: 43.53068309999071 seconds

junbo75 avatar Dec 03 '22 00:12 junbo75