Skip to content

python[patch]: fix example link [LS-2764] #945

python[patch]: fix example link [LS-2764]

python[patch]: fix example link [LS-2764] #945

Triggered via pull request January 29, 2025 23:28
Status Success
Total duration 5m 31s
Artifacts

py-bench.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 notices
Benchmark results: python/langsmith/utils.py#L1
........... WARNING: the benchmark result may be unstable * the standard deviation (90.8 ms) is 13% of the mean (697 ms) Try to rerun the benchmark with more runs, values and/or loops. Run 'python -m pyperf system tune' command to reduce the system jitter. Use pyperf stats, pyperf dump and pyperf hist to analyze results. Use --quiet option to hide these warnings. create_5_000_run_trees: Mean +- std dev: 697 ms +- 91 ms ........... create_10_000_run_trees: Mean +- std dev: 1.36 sec +- 0.11 sec ........... create_20_000_run_trees: Mean +- std dev: 2.68 sec +- 0.14 sec ........... dumps_class_nested_py_branch_and_leaf_200x400: Mean +- std dev: 702 us +- 9 us ........... dumps_class_nested_py_leaf_50x100: Mean +- std dev: 25.1 ms +- 0.4 ms ........... dumps_class_nested_py_leaf_100x200: Mean +- std dev: 104 ms +- 3 ms ........... dumps_dataclass_nested_50x100: Mean +- std dev: 25.7 ms +- 1.0 ms ........... WARNING: the benchmark result may be unstable * the standard deviation (17.8 ms) is 24% of the mean (73.9 ms) Try to rerun the benchmark with more runs, values and/or loops. Run 'python -m pyperf system tune' command to reduce the system jitter. Use pyperf stats, pyperf dump and pyperf hist to analyze results. Use --quiet option to hide these warnings. dumps_pydantic_nested_50x100: Mean +- std dev: 73.9 ms +- 17.8 ms ........... dumps_pydanticv1_nested_50x100: Mean +- std dev: 198 ms +- 3 ms
Comparison against main: python/langsmith/utils.py#L1
+-----------------------------------------------+----------+------------------------+ | Benchmark | main | changes | +===============================================+==========+========================+ | dumps_pydanticv1_nested_50x100 | 217 ms | 198 ms: 1.09x faster | +-----------------------------------------------+----------+------------------------+ | dumps_class_nested_py_branch_and_leaf_200x400 | 709 us | 702 us: 1.01x faster | +-----------------------------------------------+----------+------------------------+ | create_20_000_run_trees | 2.67 sec | 2.68 sec: 1.00x slower | +-----------------------------------------------+----------+------------------------+ | dumps_class_nested_py_leaf_100x200 | 103 ms | 104 ms: 1.01x slower | +-----------------------------------------------+----------+------------------------+ | dumps_class_nested_py_leaf_50x100 | 24.9 ms | 25.1 ms: 1.01x slower | +-----------------------------------------------+----------+------------------------+ | create_10_000_run_trees | 1.34 sec | 1.36 sec: 1.01x slower | +-----------------------------------------------+----------+------------------------+ | dumps_dataclass_nested_50x100 | 25.3 ms | 25.7 ms: 1.01x slower | +-----------------------------------------------+----------+------------------------+ | create_5_000_run_trees | 677 ms | 697 ms: 1.03x slower | +-----------------------------------------------+----------+------------------------+ | dumps_pydantic_nested_50x100 | 66.0 ms | 73.9 ms: 1.12x slower | +-----------------------------------------------+----------+------------------------+ | Geometric mean | (ref) | 1.01x slower | +-----------------------------------------------+----------+------------------------+