Mercurial > hg > orthanc-tests
changeset 977:3448d318635c
fix perfs tests
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Tue, 22 Sep 2026 15:09:04 +0200 |
| parents | 0c13013c7930 |
| children | e6580e4c3b4e |
| files | NewTests/NonRegressionPerfs/test_non_regression_perfs.py |
| diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/NewTests/NonRegressionPerfs/test_non_regression_perfs.py Tue Sep 22 12:59:34 2026 +0200 +++ b/NewTests/NonRegressionPerfs/test_non_regression_perfs.py Tue Sep 22 15:09:04 2026 +0200 @@ -129,6 +129,7 @@ subprocesss_env["ORTHANC_IMAGE_UNDER_TESTS"] = Helpers.orthanc_under_tests_docker_image print("Launching containers") + subprocess.run(["docker", "compose", "down", "-v"], env=subprocesss_env, check=True) subprocess.run(["docker", "compose", "up", "-d"], env=subprocesss_env, check=True) o_ref = OrthancApiClient(test_configs["ref"]["orthanc-url"]) @@ -169,14 +170,24 @@ perform_test=lambda o: [o.get_binary(endpoint=f"/studies/{i}/archive?transcode=1.2.840.10008.1.2.4.70") for i in o.studies.get_all_ids()], reapeat_count=5, test_configs=test_configs, - test_results=test_results) + test_results=test_results, + tolerance_pct=0.40) self.measure(test_name="download archives with transcoding 5x5 (parallel)", perform_test=lambda o: [o.get_binary(endpoint=f"/studies/{i}/archive?transcode=1.2.840.10008.1.2.4.70") for i in o.studies.get_all_ids()], reapeat_count=1, parallel_count=5, test_configs=test_configs, - test_results=test_results) + test_results=test_results, + tolerance_pct=0.40) + + self.measure(test_name="download archives no transcoding 5x5 (parallel)", + perform_test=lambda o: [o.get_binary(endpoint=f"/studies/{i}/archive") for i in o.studies.get_all_ids()], + reapeat_count=1, + parallel_count=5, + test_configs=test_configs, + test_results=test_results, + tolerance_pct=0.40) self.measure(test_name="get simplified tags 1x1000 (sequential)", perform_test=lambda o: [o.instances.get_tags(i) for i in o.instances.get_all_ids()[:1000]],
