benchmarks: always run (not conditional on changes) (#31409)

This commit is contained in:
Sydney Runkle
2025-05-29 11:45:57 -04:00
committed by GitHub
parent 49eeb0f3c3
commit 1917dd1ccd
2 changed files with 23 additions and 32 deletions

View File

@@ -1012,4 +1012,9 @@ class ChatModelUnitTests(ChatModelTests):
"""Test initialization time of the chat model. If this test fails, check that
we are not introducing undue overhead in the model's initialization.
"""
_ = benchmark(self.chat_model_class, **self.chat_model_params)
def _init_in_loop() -> None:
for _ in range(10):
self.chat_model_class(**self.chat_model_params)
benchmark(_init_in_loop)