aio-libs
yarl
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Make `from_parts` a LRU to increase the chance we can preserve the internal cache
#1434
Merged
Comparing
dry_from_parts
(
ca72808
) with
master
(
22544b1
)
CodSpeed Performance Gauge
+86%
Improvements
20
Regressions
0
Untouched
66
New
0
Dropped
0
Ignored
0
Benchmarks
Improved
test_url_with_path_relative
tests/test_url_benchmarks.py::test_url_with_path_relative
CodSpeed Performance Gauge
+86%
231.9 µs
124.9 µs
test_url_with_fragment
tests/test_url_benchmarks.py::test_url_with_fragment
CodSpeed Performance Gauge
+58%
299 µs
189.5 µs
test_url_with_scheme
tests/test_url_benchmarks.py::test_url_with_scheme
CodSpeed Performance Gauge
+57%
265.9 µs
169.1 µs
test_url_with_path
tests/test_url_benchmarks.py::test_url_with_path
CodSpeed Performance Gauge
+52%
325.8 µs
214.2 µs
test_update_query_none
tests/test_url_benchmarks.py::test_update_query_none
CodSpeed Performance Gauge
+48%
90.2 µs
61.1 µs
test_update_query_empty
tests/test_url_benchmarks.py::test_update_query_empty
CodSpeed Performance Gauge
+45%
94.9 µs
65.3 µs
test_url_with_port
tests/test_url_benchmarks.py::test_url_with_port
CodSpeed Performance Gauge
+38%
436.5 µs
316.3 µs
test_url_with_user
tests/test_url_benchmarks.py::test_url_with_user
CodSpeed Performance Gauge
+36%
438 µs
320.9 µs
test_with_query_none
tests/test_url_benchmarks.py::test_with_query_none
CodSpeed Performance Gauge
+36%
107.7 µs
79.2 µs
test_with_query_empty
tests/test_url_benchmarks.py::test_with_query_empty
CodSpeed Performance Gauge
+35%
112.2 µs
83.3 µs
test_url_with_password
tests/test_url_benchmarks.py::test_url_with_password
CodSpeed Performance Gauge
+34%
447.1 µs
332.7 µs
test_url_with_host
tests/test_url_benchmarks.py::test_url_with_host
CodSpeed Performance Gauge
+32%
492.1 µs
373.3 µs
test_url_with_path_parent
tests/test_url_benchmarks.py::test_url_with_path_parent
CodSpeed Performance Gauge
+31%
438.1 µs
333.1 µs
test_url_with_name
tests/test_url_benchmarks.py::test_url_with_name
CodSpeed Performance Gauge
+27%
473.2 µs
372.2 µs
test_url_joinpath_encoded
tests/test_url_benchmarks.py::test_url_joinpath_encoded
CodSpeed Performance Gauge
+21%
619.2 µs
509.8 µs
test_url_join
tests/test_url_benchmarks.py::test_url_join
CodSpeed Performance Gauge
+21%
251.9 µs
208.8 µs
test_url_joinpath
tests/test_url_benchmarks.py::test_url_joinpath
CodSpeed Performance Gauge
+20%
657.3 µs
546.9 µs
test_url_extend_query_existing_query_string
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_string
CodSpeed Performance Gauge
+20%
151.8 µs
126.5 µs
test_url_joinpath_with_truediv
tests/test_url_benchmarks.py::test_url_joinpath_with_truediv
CodSpeed Performance Gauge
+17%
750.6 µs
644.1 µs
test_url_joinpath_encoded_long
tests/test_url_benchmarks.py::test_url_joinpath_encoded_long
CodSpeed Performance Gauge
+13%
962.6 µs
853.9 µs
Passed
test_update_query_mapping
tests/test_url_benchmarks.py::test_update_query_mapping
CodSpeed Performance Gauge
+5%
890 µs
846.5 µs
test_url_extend_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_simple_query_dict
CodSpeed Performance Gauge
+5%
577 µs
551.1 µs
test_with_query_mapping
tests/test_url_benchmarks.py::test_with_query_mapping
CodSpeed Performance Gauge
+5%
574.2 µs
548.8 µs
test_url_extend_query_existing_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_simple_query_dict
CodSpeed Performance Gauge
+4%
599.6 µs
574.8 µs
test_update_query_string
tests/test_url_benchmarks.py::test_update_query_string
CodSpeed Performance Gauge
+4%
670.1 µs
643 µs
test_with_query_mapping_int_values
tests/test_url_benchmarks.py::test_with_query_mapping_int_values
CodSpeed Performance Gauge
+3%
908.2 µs
882.3 µs
test_extend_query_subclassed_str
tests/test_url_benchmarks.py::test_extend_query_subclassed_str
CodSpeed Performance Gauge
+3%
904.7 µs
880.3 µs
test_update_query_mapping_with_existing_query
tests/test_url_benchmarks.py::test_update_query_mapping_with_existing_query
CodSpeed Performance Gauge
+2%
1.1 ms
1.1 ms
test_with_query_sequence_mapping
tests/test_url_benchmarks.py::test_with_query_sequence_mapping
CodSpeed Performance Gauge
+1%
3.2 ms
3.2 ms
test_update_query_sequence_mapping
tests/test_url_benchmarks.py::test_update_query_sequence_mapping
CodSpeed Performance Gauge
+1%
3.5 ms
3.4 ms
test_url_make_encoded_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_make_encoded_with_host_path_and_port
CodSpeed Performance Gauge
0%
188.5 µs
187.8 µs
test_query_string
tests/test_url_benchmarks.py::test_query_string
CodSpeed Performance Gauge
0%
47.5 µs
47.4 µs
test_url_make_with_many_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_hosts
CodSpeed Performance Gauge
0%
3.4 ms
3.4 ms
test_url_make_with_host_and_path
tests/test_url_benchmarks.py::test_url_make_with_host_and_path
CodSpeed Performance Gauge
0%
139.1 µs
139 µs
test_url_make_empty_password
tests/test_url_benchmarks.py::test_url_make_empty_password
CodSpeed Performance Gauge
0%
138.6 µs
138.4 µs
test_url_make_access_raw_path
tests/test_url_benchmarks.py::test_url_make_access_raw_path
CodSpeed Performance Gauge
0%
167 µs
166.8 µs
test_url_make_with_many_ipv4_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_ipv4_hosts
CodSpeed Performance Gauge
0%
3.4 ms
3.3 ms
test_empty_query_string
tests/test_url_benchmarks.py::test_empty_query_string
CodSpeed Performance Gauge
0%
47 µs
47 µs
test_url_build_with_host
tests/test_url_benchmarks.py::test_url_build_with_host
CodSpeed Performance Gauge
0%
405.2 µs
405 µs
test_is_default_port
tests/test_url_benchmarks.py::test_is_default_port
CodSpeed Performance Gauge
0%
171.4 µs
171.3 µs
test_url_make_access_username_password
tests/test_url_benchmarks.py::test_url_make_access_username_password
CodSpeed Performance Gauge
0%
193.1 µs
193 µs
test_url_make_access_raw_host
tests/test_url_benchmarks.py::test_url_make_access_raw_host
CodSpeed Performance Gauge
0%
167.7 µs
167.6 µs
test_url_make_with_ipv4_address_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_ipv4_address_path_and_port
CodSpeed Performance Gauge
0%
139.6 µs
139.5 µs
test_url_make_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_host_path_and_port
CodSpeed Performance Gauge
0%
138.6 µs
138.5 µs
test_query
tests/test_url_benchmarks.py::test_query
CodSpeed Performance Gauge
0%
46.7 µs
46.7 µs
test_url_make_no_netloc
tests/test_url_benchmarks.py::test_url_make_no_netloc
CodSpeed Performance Gauge
0%
138.6 µs
138.6 µs
test_url_make_empty_username
tests/test_url_benchmarks.py::test_url_make_empty_username
CodSpeed Performance Gauge
0%
139.9 µs
139.9 µs
test_quote_long_path
tests/test_quoting_benchmarks.py::test_quote_long_path
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_long_query_with_pct
tests/test_quoting_benchmarks.py::test_long_query_with_pct
CodSpeed Performance Gauge
0%
9.7 ms
9.7 ms
test_long_query
tests/test_quoting_benchmarks.py::test_long_query
CodSpeed Performance Gauge
0%
2.2 ms
2.2 ms
test_url_build_with_simple_query
tests/test_url_benchmarks.py::test_url_build_with_simple_query
CodSpeed Performance Gauge
0%
2.3 ms
2.3 ms
test_url_to_string
tests/test_url_benchmarks.py::test_url_to_string
CodSpeed Performance Gauge
0%
218.7 µs
218.7 µs
test_url_equality
tests/test_url_benchmarks.py::test_url_equality
CodSpeed Performance Gauge
0%
310.6 µs
310.7 µs
test_url_with_path_to_string
tests/test_url_benchmarks.py::test_url_with_path_to_string
CodSpeed Performance Gauge
0%
237.9 µs
237.9 µs
test_raw_host_empty_cache
tests/test_url_benchmarks.py::test_raw_host_empty_cache
CodSpeed Performance Gauge
0%
238 µs
238 µs
test_url_make_with_many_ipv6_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_ipv6_hosts
CodSpeed Performance Gauge
0%
4.5 ms
4.5 ms
test_quoter_quote_utf8
tests/test_quoting_benchmarks.py::test_quoter_quote_utf8
CodSpeed Performance Gauge
0%
393.3 µs
393.4 µs
test_url_make_access_fragment
tests/test_url_benchmarks.py::test_url_make_access_fragment
CodSpeed Performance Gauge
0%
167.3 µs
167.4 µs
test_url_make_with_ipv6_address_and_path
tests/test_url_benchmarks.py::test_url_make_with_ipv6_address_and_path
CodSpeed Performance Gauge
0%
138.5 µs
138.6 µs
test_url_make_with_ipv4_address_and_path
tests/test_url_benchmarks.py::test_url_make_with_ipv4_address_and_path
CodSpeed Performance Gauge
0%
138.5 µs
138.5 µs
test_url_build_access_fragment
tests/test_url_benchmarks.py::test_url_build_access_fragment
CodSpeed Performance Gauge
0%
498.5 µs
498.8 µs
test_url_make_no_netloc_relative
tests/test_url_benchmarks.py::test_url_make_no_netloc_relative
CodSpeed Performance Gauge
0%
138.6 µs
138.7 µs
test_url_origin_with_user_pass
tests/test_url_benchmarks.py::test_url_origin_with_user_pass
CodSpeed Performance Gauge
0%
81 µs
81 µs
test_url_with_query_to_string
tests/test_url_benchmarks.py::test_url_with_query_to_string
CodSpeed Performance Gauge
0%
275.1 µs
275.3 µs
test_quote_query_string
tests/test_quoting_benchmarks.py::test_quote_query_string
CodSpeed Performance Gauge
0%
147.9 µs
148.1 µs
test_url_make_with_ipv6_address_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_ipv6_address_path_and_port
CodSpeed Performance Gauge
0%
138.4 µs
138.6 µs
test_url_origin
tests/test_url_benchmarks.py::test_url_origin
CodSpeed Performance Gauge
0%
78.5 µs
78.6 µs
test_quoter_pct
tests/test_quoting_benchmarks.py::test_quoter_pct
CodSpeed Performance Gauge
0%
145.3 µs
145.4 µs
test_empty_query
tests/test_url_benchmarks.py::test_empty_query
CodSpeed Performance Gauge
0%
46.7 µs
46.8 µs
test_unquoter_short
tests/test_quoting_benchmarks.py::test_unquoter_short
CodSpeed Performance Gauge
0%
125.4 µs
125.6 µs
test_url_with_path_origin
tests/test_url_benchmarks.py::test_url_with_path_origin
CodSpeed Performance Gauge
0%
80.3 µs
80.4 µs
test_url_build_no_netloc_relative
tests/test_url_benchmarks.py::test_url_build_no_netloc_relative
CodSpeed Performance Gauge
0%
350.5 µs
351.1 µs
test_url_build_access_username_password
tests/test_url_benchmarks.py::test_url_build_access_username_password
CodSpeed Performance Gauge
0%
684.7 µs
685.9 µs
test_url_build_encoded_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_encoded_with_host_and_port
CodSpeed Performance Gauge
0%
399.3 µs
400 µs
test_url_build_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_path_and_port
CodSpeed Performance Gauge
0%
529.2 µs
530.4 µs
test_url_build_access_raw_host
tests/test_url_benchmarks.py::test_url_build_access_raw_host
CodSpeed Performance Gauge
0%
601.8 µs
603.4 µs
test_quoter_ascii
tests/test_quoting_benchmarks.py::test_quoter_ascii
CodSpeed Performance Gauge
0%
73.5 µs
73.7 µs
test_human_repr
tests/test_url_benchmarks.py::test_human_repr
CodSpeed Performance Gauge
0%
10.2 ms
10.3 ms
test_url_hash
tests/test_url_benchmarks.py::test_url_hash
CodSpeed Performance Gauge
0%
193.4 µs
194 µs
test_url_build_no_netloc
tests/test_url_benchmarks.py::test_url_build_no_netloc
CodSpeed Performance Gauge
0%
353.7 µs
355.1 µs
test_url_build_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_and_port
CodSpeed Performance Gauge
0%
615.9 µs
618.4 µs
test_url_build_with_different_hosts
tests/test_url_benchmarks.py::test_url_build_with_different_hosts
CodSpeed Performance Gauge
0%
1 ms
1 ms
test_url_build_access_raw_path
tests/test_url_benchmarks.py::test_url_build_access_raw_path
CodSpeed Performance Gauge
-1%
548.9 µs
551.7 µs
test_url_host_port_subcomponent
tests/test_url_benchmarks.py::test_url_host_port_subcomponent
CodSpeed Performance Gauge
-1%
454.6 µs
457 µs
test_unquoter_long_pct
tests/test_quoting_benchmarks.py::test_unquoter_long_pct
CodSpeed Performance Gauge
-1%
6.8 ms
6.9 ms
test_unquoter_long_ascii
tests/test_quoting_benchmarks.py::test_unquoter_long_ascii
CodSpeed Performance Gauge
-2%
4.2 ms
4.3 ms
Commits
Click on a commit to change the comparison range
Base
master
22544b1
-24%
DNM: Experiment with making from_parts an LRU
0799de3
7 months ago
by bdraco
+109%
revert changes to build
18ba56e
7 months ago
by bdraco
0%
Update CHANGES/1434.misc.rst
ca72808
7 months ago
by bdraco
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs