Avatar for the aio-libs user
aio-libs
yarl
BlogDocsChangelog

Rework of the URL subtraction feature

#1392
Comparing
babieiev:subtraction
(
e15878f
) with
master
(
937f030
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
101
New
2
Dropped
0
Ignored
0

Benchmarks

New

test_relative_to
tests/test_url_benchmarks.py::test_relative_to
CodSpeed Performance Gauge
N/A
N/A
829.8 µs
test_relative_to_long_urls
tests/test_url_benchmarks.py::test_relative_to_long_urls
CodSpeed Performance Gauge
N/A
N/A
4.5 ms

Passed

test_empty_raw_path_qs
tests/test_url_benchmarks.py::test_empty_raw_path_qs
CodSpeed Performance Gauge
+2%
53 µs
52.1 µs
test_url_with_path_origin
tests/test_url_benchmarks.py::test_url_with_path_origin
CodSpeed Performance Gauge
+2%
79.1 µs
77.9 µs
test_url_with_query_to_string
tests/test_url_benchmarks.py::test_url_with_query_to_string
CodSpeed Performance Gauge
+1%
249.6 µs
247 µs
test_url_make_empty_password
tests/test_url_benchmarks.py::test_url_make_empty_password
CodSpeed Performance Gauge
+1%
133.5 µs
132.6 µs
test_url_make_access_fragment
tests/test_url_benchmarks.py::test_url_make_access_fragment
CodSpeed Performance Gauge
+1%
165.1 µs
164.2 µs
test_url_with_password
tests/test_url_benchmarks.py::test_url_with_password
CodSpeed Performance Gauge
+1%
371.7 µs
369.8 µs
test_url_with_path_parent
tests/test_url_benchmarks.py::test_url_with_path_parent
CodSpeed Performance Gauge
0%
297.2 µs
295.8 µs
test_url_extend_query_existing_query_string
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_string
CodSpeed Performance Gauge
0%
152.1 µs
151.4 µs
test_url_to_string
tests/test_url_benchmarks.py::test_url_to_string
CodSpeed Performance Gauge
0%
199.7 µs
198.9 µs
test_url_with_port
tests/test_url_benchmarks.py::test_url_with_port
CodSpeed Performance Gauge
0%
302.6 µs
301.7 µs
test_raw_path_qs
tests/test_url_benchmarks.py::test_raw_path_qs
CodSpeed Performance Gauge
0%
53.1 µs
52.9 µs
test_url_extend_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_simple_query_dict
CodSpeed Performance Gauge
0%
668.6 µs
666.9 µs
test_url_with_host
tests/test_url_benchmarks.py::test_url_with_host
CodSpeed Performance Gauge
0%
353.8 µs
352.9 µs
test_url_joinpath_with_truediv
tests/test_url_benchmarks.py::test_url_joinpath_with_truediv
CodSpeed Performance Gauge
0%
690 µs
688.4 µ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
0%
691.1 µs
689.5 µs
test_update_query_sequence_mapping
tests/test_url_benchmarks.py::test_update_query_sequence_mapping
CodSpeed Performance Gauge
0%
4.5 ms
4.5 ms
test_empty_query_string_uncached
tests/test_url_benchmarks.py::test_empty_query_string_uncached
CodSpeed Performance Gauge
0%
77.8 µs
77.6 µs
test_raw_host_empty_cache
tests/test_url_benchmarks.py::test_raw_host_empty_cache
CodSpeed Performance Gauge
0%
229.5 µs
229.1 µs
test_url_build_no_netloc_relative
tests/test_url_benchmarks.py::test_url_build_no_netloc_relative
CodSpeed Performance Gauge
0%
410.6 µs
410 µs
test_url_build_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_and_port
CodSpeed Performance Gauge
0%
633.1 µs
632.1 µs
test_url_build_with_simple_query
tests/test_url_benchmarks.py::test_url_build_with_simple_query
CodSpeed Performance Gauge
0%
2.7 ms
2.7 ms
test_url_make_with_many_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_hosts
CodSpeed Performance Gauge
0%
3.2 ms
3.1 ms
test_raw_path_qs_with_query_uncached
tests/test_url_benchmarks.py::test_raw_path_qs_with_query_uncached
CodSpeed Performance Gauge
0%
117.2 µs
117.1 µs
test_empty_path_safe_uncached
tests/test_url_benchmarks.py::test_empty_path_safe_uncached
CodSpeed Performance Gauge
0%
86.7 µs
86.6 µs
test_url_build_with_different_hosts
tests/test_url_benchmarks.py::test_url_build_with_different_hosts
CodSpeed Performance Gauge
0%
978.3 µs
977 µs
test_url_make_access_raw_path
tests/test_url_benchmarks.py::test_url_make_access_raw_path
CodSpeed Performance Gauge
0%
161.5 µs
161.3 µs
test_url_joinpath
tests/test_url_benchmarks.py::test_url_joinpath
CodSpeed Performance Gauge
0%
565.9 µs
565.2 µs
test_parse_query_uncached[short]
tests/test_url_benchmarks.py::test_parse_query_uncached[short]
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
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%
133 µs
132.8 µs
test_quote_query_string
tests/test_quoting_benchmarks.py::test_quote_query_string
CodSpeed Performance Gauge
0%
313.9 µs
313.6 µs
test_url_build_access_username_password
tests/test_url_benchmarks.py::test_url_build_access_username_password
CodSpeed Performance Gauge
0%
674.6 µs
673.9 µs
test_with_query_sequence_mapping
tests/test_url_benchmarks.py::test_with_query_sequence_mapping
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
test_url_build_no_netloc
tests/test_url_benchmarks.py::test_url_build_no_netloc
CodSpeed Performance Gauge
0%
422.2 µs
421.8 µs
test_url_make_access_username_password
tests/test_url_benchmarks.py::test_url_make_access_username_password
CodSpeed Performance Gauge
0%
187.2 µs
187 µs
test_url_with_path_to_string
tests/test_url_benchmarks.py::test_url_with_path_to_string
CodSpeed Performance Gauge
0%
214.9 µs
214.8 µs
test_empty_raw_path_qs_uncached
tests/test_url_benchmarks.py::test_empty_raw_path_qs_uncached
CodSpeed Performance Gauge
0%
92.1 µs
92.1 µs
test_query
tests/test_url_benchmarks.py::test_query
CodSpeed Performance Gauge
0%
46.5 µs
46.5 µs
test_with_query_empty
tests/test_url_benchmarks.py::test_with_query_empty
CodSpeed Performance Gauge
0%
99.1 µs
99 µ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%
132.9 µs
132.8 µs
test_with_query_mapping
tests/test_url_benchmarks.py::test_with_query_mapping
CodSpeed Performance Gauge
0%
667 µs
666.7 µs
test_url_with_path
tests/test_url_benchmarks.py::test_url_with_path
CodSpeed Performance Gauge
0%
244.6 µs
244.5 µs
test_url_equality
tests/test_url_benchmarks.py::test_url_equality
CodSpeed Performance Gauge
0%
304.7 µs
304.5 µs
test_long_query_with_pct
tests/test_quoting_benchmarks.py::test_long_query_with_pct
CodSpeed Performance Gauge
0%
17.9 ms
17.9 ms
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%
253 µs
252.9 µs
test_unquoter_long_ascii
tests/test_quoting_benchmarks.py::test_unquoter_long_ascii
CodSpeed Performance Gauge
0%
12.1 ms
12.1 ms
test_unquoter_long_pct
tests/test_quoting_benchmarks.py::test_unquoter_long_pct
CodSpeed Performance Gauge
0%
15 ms
15 ms
test_with_query_mapping_int_values
tests/test_url_benchmarks.py::test_with_query_mapping_int_values
CodSpeed Performance Gauge
0%
1 ms
1 ms
test_unquoter_short
tests/test_quoting_benchmarks.py::test_unquoter_short
CodSpeed Performance Gauge
0%
203.5 µs
203.5 µ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%
134.3 µs
134.3 µs
test_url_with_path_relative
tests/test_url_benchmarks.py::test_url_with_path_relative
CodSpeed Performance Gauge
0%
118.7 µs
118.7 µs
test_quoter_quote_utf8
tests/test_quoting_benchmarks.py::test_quoter_quote_utf8
CodSpeed Performance Gauge
0%
683.7 µs
683.7 µs
test_url_with_fragment
tests/test_url_benchmarks.py::test_url_with_fragment
CodSpeed Performance Gauge
0%
233.2 µs
233.2 µs
test_quoter_ascii
tests/test_quoting_benchmarks.py::test_quoter_ascii
CodSpeed Performance Gauge
0%
124 µs
124 µs
test_url_make_no_netloc_relative
tests/test_url_benchmarks.py::test_url_make_no_netloc_relative
CodSpeed Performance Gauge
0%
132.9 µs
132.9 µs
test_long_query
tests/test_quoting_benchmarks.py::test_long_query
CodSpeed Performance Gauge
0%
5.9 ms
5.9 ms
test_empty_query_string
tests/test_url_benchmarks.py::test_empty_query_string
CodSpeed Performance Gauge
0%
46.8 µs
46.8 µs
test_quote_long_path
tests/test_quoting_benchmarks.py::test_quote_long_path
CodSpeed Performance Gauge
0%
4.8 ms
4.8 ms
test_url_join
tests/test_url_benchmarks.py::test_url_join
CodSpeed Performance Gauge
0%
190.2 µs
190.2 µs
test_url_with_scheme
tests/test_url_benchmarks.py::test_url_with_scheme
CodSpeed Performance Gauge
0%
161.7 µs
161.7 µs
test_quoter_pct
tests/test_quoting_benchmarks.py::test_quoter_pct
CodSpeed Performance Gauge
0%
244.5 µs
244.5 µs
test_empty_path_uncached
tests/test_url_benchmarks.py::test_empty_path_uncached
CodSpeed Performance Gauge
0%
86.5 µs
86.5 µs
test_update_query_mapping_with_existing_query
tests/test_url_benchmarks.py::test_update_query_mapping_with_existing_query
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_path_safe_uncached
tests/test_url_benchmarks.py::test_path_safe_uncached
CodSpeed Performance Gauge
0%
232.2 µs
232.2 µs
test_url_make_with_host_and_path
tests/test_url_benchmarks.py::test_url_make_with_host_and_path
CodSpeed Performance Gauge
0%
132.9 µs
133 µs
test_url_build_access_raw_path
tests/test_url_benchmarks.py::test_url_build_access_raw_path
CodSpeed Performance Gauge
0%
583.6 µs
583.9 µs
test_url_host_port_subcomponent
tests/test_url_benchmarks.py::test_url_host_port_subcomponent
CodSpeed Performance Gauge
0%
440.7 µs
440.9 µs
test_extend_query_subclassed_str
tests/test_url_benchmarks.py::test_extend_query_subclassed_str
CodSpeed Performance Gauge
0%
1 ms
1 ms
test_url_make_empty_username
tests/test_url_benchmarks.py::test_url_make_empty_username
CodSpeed Performance Gauge
0%
134.2 µs
134.3 µs
test_query_string
tests/test_url_benchmarks.py::test_query_string
CodSpeed Performance Gauge
0%
47.3 µs
47.3 µ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.2 ms
4.2 ms
test_raw_path_qs_uncached
tests/test_url_benchmarks.py::test_raw_path_qs_uncached
CodSpeed Performance Gauge
0%
89.7 µs
89.7 µs
test_url_with_user
tests/test_url_benchmarks.py::test_url_with_user
CodSpeed Performance Gauge
0%
347.3 µs
347.5 µs
test_human_repr
tests/test_url_benchmarks.py::test_human_repr
CodSpeed Performance Gauge
0%
10.2 ms
10.2 ms
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%
132.8 µs
132.9 µs
test_is_default_port
tests/test_url_benchmarks.py::test_is_default_port
CodSpeed Performance Gauge
0%
165.1 µs
165.3 µs
test_url_make_access_raw_host
tests/test_url_benchmarks.py::test_url_make_access_raw_host
CodSpeed Performance Gauge
0%
162.3 µs
162.5 µs
test_update_query_mapping
tests/test_url_benchmarks.py::test_update_query_mapping
CodSpeed Performance Gauge
0%
927.9 µs
928.8 µ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%
508.7 µs
509.3 µs
test_url_hash
tests/test_url_benchmarks.py::test_url_hash
CodSpeed Performance Gauge
0%
180.2 µs
180.4 µs
test_url_make_no_netloc
tests/test_url_benchmarks.py::test_url_make_no_netloc
CodSpeed Performance Gauge
0%
133.3 µs
133.5 µs
test_update_query_none
tests/test_url_benchmarks.py::test_update_query_none
CodSpeed Performance Gauge
0%
78.7 µs
78.8 µs
test_empty_query
tests/test_url_benchmarks.py::test_empty_query
CodSpeed Performance Gauge
0%
46.5 µs
46.6 µs
test_parse_query_uncached[long]
tests/test_url_benchmarks.py::test_parse_query_uncached[long]
CodSpeed Performance Gauge
0%
20.8 ms
20.9 ms
test_url_build_with_host
tests/test_url_benchmarks.py::test_url_build_with_host
CodSpeed Performance Gauge
0%
383.1 µs
384 µs
test_url_joinpath_encoded_long
tests/test_url_benchmarks.py::test_url_joinpath_encoded_long
CodSpeed Performance Gauge
0%
849.6 µs
851.9 µs
test_empty_path_safe
tests/test_url_benchmarks.py::test_empty_path_safe
CodSpeed Performance Gauge
0%
51.3 µs
51.4 µs
test_update_query_empty
tests/test_url_benchmarks.py::test_update_query_empty
CodSpeed Performance Gauge
0%
82.4 µs
82.7 µs
test_url_joinpath_encoded
tests/test_url_benchmarks.py::test_url_joinpath_encoded
CodSpeed Performance Gauge
0%
477.5 µs
479.1 µs
test_url_build_access_fragment
tests/test_url_benchmarks.py::test_url_build_access_fragment
CodSpeed Performance Gauge
0%
466.8 µs
468.5 µs
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%
181.2 µs
181.9 µs
test_url_with_name
tests/test_url_benchmarks.py::test_url_with_name
CodSpeed Performance Gauge
0%
426.9 µs
428.8 µs
test_raw_path_qs_with_query
tests/test_url_benchmarks.py::test_raw_path_qs_with_query
CodSpeed Performance Gauge
0%
53.1 µs
53.4 µs
test_with_query_none
tests/test_url_benchmarks.py::test_with_query_none
CodSpeed Performance Gauge
0%
94.7 µs
95.1 µs
test_url_build_access_raw_host
tests/test_url_benchmarks.py::test_url_build_access_raw_host
CodSpeed Performance Gauge
0%
594.1 µs
596.9 µ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
-1%
132.8 µs
133.5 µs
test_update_query_string
tests/test_url_benchmarks.py::test_update_query_string
CodSpeed Performance Gauge
-1%
602.4 µs
609.4 µs
test_url_make_with_many_ipv4_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_ipv4_hosts
CodSpeed Performance Gauge
-1%
3.1 ms
3.2 ms
test_url_origin_with_user_pass
tests/test_url_benchmarks.py::test_url_origin_with_user_pass
CodSpeed Performance Gauge
-1%
78.6 µs
79.6 µs
test_empty_path
tests/test_url_benchmarks.py::test_empty_path
CodSpeed Performance Gauge
-2%
51.4 µs
52.2 µs
test_url_origin
tests/test_url_benchmarks.py::test_url_origin
CodSpeed Performance Gauge
-2%
77.4 µs
78.9 µs
test_path_safe
tests/test_url_benchmarks.py::test_path_safe
CodSpeed Performance Gauge
-3%
53.7 µs
55.5 µs

Commits

Click on a commit to change the comparison range
Base
master
937f030
0%
Merge branch 'master' into subtraction
6e06904
1 month ago
by babieiev
0%
Fix handling of special cases with trailing slashes
eb68935
1 month ago
by babieiev
0%
Merge branch 'master' into subtraction
140352d
1 month ago
by babieiev
0%
Reorganize tests for `URL.relative_to(url)`
c02d6df
1 month ago
by babieiev
0%
Add missing type annotations
e15878f
6 days ago
by babieiev
© 2025 CodSpeed Technology
Home Terms PrivacyDocs