langchain-ai
langchain
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf(core): defer tracer imports in runnables/base.py to call time
#36920
Comparing
sr/deferred-imports
(
0545fee
) with
master
(
fb6ab99
)
CodSpeed Performance Gauge
+52%
Improvement
7
Untouched
8
New
7
No successful run was found on
master
(
acc5498
) during the generation of this report, so
fb6ab99
was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
New
Untouched
22 total
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+52%
1.6 s
*
1.1 s
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+48%
1,270.7 ms
*
857.3 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+48%
1,268.2 ms
*
857.1 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+47%
1,406 ms
*
959.6 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+46%
1,393.9 ms
*
953.3 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+44%
1.5 s
*
1 s
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+43%
1,373.2 ms
*
962.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_medium_tools
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
10.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tool_call_schema_repeated_access
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
20.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tool_args_repeated_access
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
19.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_small_tools
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
9.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_large_tools_with_middleware
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
19.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_large_tools_memory
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
81.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_large_tools
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
N/A
N/A
13.5 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
+2%
55.8 ms
*
54.5 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
676.2 ms
*
669.1 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
445.5 ms
*
442.7 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
1.2 s
*
1.2 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_instantiation
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
+1%
4.1 ms
4 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
812.8 ms
*
809.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_agent_instantiation_with_middleware
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
0%
14.9 ms
14.8 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
484.1 ms
*
483.5 ms
Commits
Click on a commit to change the comparison range
Base
master
fb6ab99
+52.38%
perf(core): defer tracer imports in runnables/base.py to call time
0545fee
17 hours ago
by sydney-runkle
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs