mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 23:26:34 +00:00
Adding more import time benchmarks for langchain-core
(#30770)
Plus minor typo fix in `ChatPromptTemplate` case id.
This commit is contained in:
parent
6c45c9efc3
commit
cd6a83117c
@ -22,13 +22,29 @@ from pytest_benchmark.fixture import BenchmarkFixture # type: ignore
|
||||
),
|
||||
pytest.param(
|
||||
"from langchain_core.prompts import ChatPromptTemplate",
|
||||
id="PromChatPromptTemplateptTemplate",
|
||||
id="ChatPromptTemplate",
|
||||
),
|
||||
pytest.param("from langchain_core.documents import Document", id="Document"),
|
||||
pytest.param(
|
||||
"from langchain_core.vectorstores import InMemoryVectorStore",
|
||||
id="InMemoryVectorStore",
|
||||
),
|
||||
pytest.param(
|
||||
"from langchain_core.runnables import RunnableLambda",
|
||||
id="RunnableLambda",
|
||||
),
|
||||
pytest.param(
|
||||
"from langchain_core.tracers import LangChainTracer",
|
||||
id="LangChainTracer",
|
||||
),
|
||||
pytest.param(
|
||||
"from langchain_core.output_parsers import PydanticOutputParser",
|
||||
id="PydanticOutputParser",
|
||||
),
|
||||
pytest.param(
|
||||
"from langchain_core.rate_limiters import InMemoryRateLimiter",
|
||||
id="InMemoryRateLimiter",
|
||||
),
|
||||
],
|
||||
)
|
||||
@pytest.mark.benchmark
|
||||
|
Loading…
Reference in New Issue
Block a user