Avatar for the langchain-ai user
langchain-ai
langchain
BlogDocsChangelog

chore(langchain): Refactor the string concatenation to use the more efficient .join() m…

#32915Closed
Comparing
zhanluxianshen:clean-str-appends
(
649af3e
) with
master
(
649d8a8
)
CodSpeed Performance Gauge
-16%
Regression
9
Untouched
4

Benchmarks

13 total
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-16%
508.3 ms605.9 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-16%
477.9 ms567.7 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-15%
446.4 ms525 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-15%
544.4 ms637.1 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-15%
613.4 ms717.8 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-14%
425.3 ms493.7 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-13%
211.3 ms244.2 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-12%
476.7 ms539.8 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-10%
164.9 ms183.6 ms
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
-2%
23.1 ms23.7 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-7%
608 ms651 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-9%
519.8 ms568.4 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-9%
221.1 ms242.1 ms

Commits

Click on a commit to change the comparison range
Base
master
649d8a8
+0.01%
Refactor the string concatenation to use the more efficient .join() method.
649af3e
8 months ago
by zhanluxianshen
© 2026 CodSpeed Technology
Home Terms Privacy Docs