Adding more import time benchmarks for langchain-core (#30770)

Plus minor typo fix in `ChatPromptTemplate` case id.
This commit is contained in:
Sydney Runkle 2025-04-10 11:50:12 -04:00 committed by GitHub
parent 6c45c9efc3
commit cd6a83117c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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