mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 15:16:21 +00:00
init in loop
This commit is contained in:
parent
dcad123c31
commit
0098f0c953
@ -1012,4 +1012,7 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user