fix(core): handle float type in merge_dicts, merge_obj, and _dict_int_op #36053
Performance Gate Passed
⚠️ Unknown Walltime execution environment detected
Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.
For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.
⚡ 13 improved benchmarks
⏩ 23 skipped benchmarks1
Performance Changes
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | WallTime | test_import_time[LangChainTracer] |
480.7 ms | 387.4 ms | +24.08% |
| ⚡ | WallTime | test_import_time[InMemoryRateLimiter] |
181.2 ms | 141.8 ms | +27.77% |
| ⚡ | WallTime | test_import_time[HumanMessage] |
277.3 ms | 214.2 ms | +29.41% |
| ⚡ | WallTime | test_async_callbacks_in_sync |
25.2 ms | 19.7 ms | +28.06% |
| ⚡ | WallTime | test_import_time[Runnable] |
522.8 ms | 403.1 ms | +29.7% |
| ⚡ | WallTime | test_import_time[ChatPromptTemplate] |
677.3 ms | 531 ms | +27.56% |
| ⚡ | WallTime | test_import_time[tool] |
582.2 ms | 459.2 ms | +26.78% |
| ⚡ | WallTime | test_import_time[PydanticOutputParser] |
565.5 ms | 463.1 ms | +22.11% |
| ⚡ | WallTime | test_import_time[Document] |
200.2 ms | 154.8 ms | +29.32% |
| ⚡ | WallTime | test_import_time[InMemoryVectorStore] |
643.7 ms | 509.7 ms | +26.28% |
| ⚡ | WallTime | test_import_time[RunnableLambda] |
522.3 ms | 402 ms | +29.92% |
| ⚡ | WallTime | test_import_time[CallbackManager] |
336.1 ms | 258.3 ms | +30.11% |
| ⚡ | WallTime | test_import_time[BaseChatModel] |
573.4 ms | 435.4 ms | +31.71% |
Comparing nevanwang:fix/core-merge-dicts-float-support (3d20b09) with master (07fa576)2
Footnotes
-
23 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
master(a81203b) during the generation of this report, so 07fa576 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩