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

Rework of the URL subtraction feature

#1392
Comparing
oleksbabieiev:subtraction
(
ad61c24
) with
master
(
c1f6ef6
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
99
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
778.9 µs
test_relative_to_long_urls
tests/test_url_benchmarks.py::test_relative_to_long_urls
CodSpeed Performance Gauge
N/A
N/A
4.4 ms

Passed

test_url_with_path_parent
tests/test_url_benchmarks.py::test_url_with_path_parent
CodSpeed Performance Gauge
+4%
318.4 µs
304.8 µs
test_path_safe
tests/test_url_benchmarks.py::test_path_safe
CodSpeed Performance Gauge
+4%
55 µs
52.7 µs
test_url_with_password
tests/test_url_benchmarks.py::test_url_with_password
CodSpeed Performance Gauge
+2%
322.2 µs
315.5 µs
test_raw_path_qs
tests/test_url_benchmarks.py::test_raw_path_qs
CodSpeed Performance Gauge
+2%
54.3 µs
53.5 µs
test_empty_path
tests/test_url_benchmarks.py::test_empty_path
CodSpeed Performance Gauge
+1%
53.1 µs
52.3 µs
test_url_with_name
tests/test_url_benchmarks.py::test_url_with_name
CodSpeed Performance Gauge
+1%
369.8 µs
365.4 µs
test_update_query_string
tests/test_url_benchmarks.py::test_update_query_string
CodSpeed Performance Gauge
+1%
656 µs
649.5 µs
test_url_extend_query_existing_query_string
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_string
CodSpeed Performance Gauge
+1%
137.7 µs
136.3 µs
test_url_with_user
tests/test_url_benchmarks.py::test_url_with_user
CodSpeed Performance Gauge
+1%
308.9 µs
306.4 µs
test_url_make_with_host_and_path
tests/test_url_benchmarks.py::test_url_make_with_host_and_path
CodSpeed Performance Gauge
+1%
135.2 µs
134.4 µs
test_url_build_with_host
tests/test_url_benchmarks.py::test_url_build_with_host
CodSpeed Performance Gauge
+1%
391.2 µs
388.8 µs
test_url_with_host
tests/test_url_benchmarks.py::test_url_with_host
CodSpeed Performance Gauge
+1%
359.6 µs
357.8 µs
test_url_build_no_netloc
tests/test_url_benchmarks.py::test_url_build_no_netloc
CodSpeed Performance Gauge
0%
356.6 µs
354.9 µs
test_update_query_empty
tests/test_url_benchmarks.py::test_update_query_empty
CodSpeed Performance Gauge
0%
83.7 µs
83.3 µ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%
255.8 µs
254.7 µs
test_raw_path_qs_uncached
tests/test_url_benchmarks.py::test_raw_path_qs_uncached
CodSpeed Performance Gauge
0%
91.1 µs
90.7 µs
test_url_with_path_to_string
tests/test_url_benchmarks.py::test_url_with_path_to_string
CodSpeed Performance Gauge
0%
216.8 µs
216 µ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%
519.1 µs
517.1 µs
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.2 ms
test_extend_query_subclassed_str
tests/test_url_benchmarks.py::test_extend_query_subclassed_str
CodSpeed Performance Gauge
0%
856.3 µs
854 µs
test_with_query_mapping_int_values
tests/test_url_benchmarks.py::test_with_query_mapping_int_values
CodSpeed Performance Gauge
0%
859.8 µs
857.5 µs
test_url_with_path_relative
tests/test_url_benchmarks.py::test_url_with_path_relative
CodSpeed Performance Gauge
0%
119.1 µs
118.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
0%
557.2 µs
556 µs
test_url_origin_with_user_pass
tests/test_url_benchmarks.py::test_url_origin_with_user_pass
CodSpeed Performance Gauge
0%
80.3 µs
80.1 µ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%
136 µs
135.7 µs
test_empty_query
tests/test_url_benchmarks.py::test_empty_query
CodSpeed Performance Gauge
0%
47.6 µs
47.6 µs
test_query_string
tests/test_url_benchmarks.py::test_query_string
CodSpeed Performance Gauge
0%
48.4 µs
48.3 µs
test_url_with_fragment
tests/test_url_benchmarks.py::test_url_with_fragment
CodSpeed Performance Gauge
0%
179.1 µs
178.8 µs
test_url_joinpath
tests/test_url_benchmarks.py::test_url_joinpath
CodSpeed Performance Gauge
0%
531.3 µs
530.4 µs
test_url_build_no_netloc_relative
tests/test_url_benchmarks.py::test_url_build_no_netloc_relative
CodSpeed Performance Gauge
0%
345.8 µs
345.2 µs
test_with_query_mapping
tests/test_url_benchmarks.py::test_with_query_mapping
CodSpeed Performance Gauge
0%
534.1 µs
533.3 µs
test_url_origin
tests/test_url_benchmarks.py::test_url_origin
CodSpeed Performance Gauge
0%
80.7 µs
80.6 µs
test_url_joinpath_with_truediv
tests/test_url_benchmarks.py::test_url_joinpath_with_truediv
CodSpeed Performance Gauge
0%
620.1 µs
619.2 µ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_url_make_access_raw_path
tests/test_url_benchmarks.py::test_url_make_access_raw_path
CodSpeed Performance Gauge
0%
163.8 µs
163.6 µs
test_quoter_ascii
tests/test_quoting_benchmarks.py::test_quoter_ascii
CodSpeed Performance Gauge
0%
69.8 µs
69.7 µs
test_url_with_query_to_string
tests/test_url_benchmarks.py::test_url_with_query_to_string
CodSpeed Performance Gauge
0%
252.2 µs
251.8 µs
test_url_make_empty_username
tests/test_url_benchmarks.py::test_url_make_empty_username
CodSpeed Performance Gauge
0%
136.1 µs
135.9 µs
test_url_with_path_origin
tests/test_url_benchmarks.py::test_url_with_path_origin
CodSpeed Performance Gauge
0%
80.6 µs
80.5 µs
test_is_default_port
tests/test_url_benchmarks.py::test_is_default_port
CodSpeed Performance Gauge
0%
166.9 µs
166.7 µs
test_empty_path_uncached
tests/test_url_benchmarks.py::test_empty_path_uncached
CodSpeed Performance Gauge
0%
87.8 µs
87.7 µs
test_url_extend_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_simple_query_dict
CodSpeed Performance Gauge
0%
535 µs
534.5 µs
test_url_with_scheme
tests/test_url_benchmarks.py::test_url_with_scheme
CodSpeed Performance Gauge
0%
162.7 µs
162.6 µs
test_url_make_empty_password
tests/test_url_benchmarks.py::test_url_make_empty_password
CodSpeed Performance Gauge
0%
134.5 µs
134.4 µs
test_human_repr
tests/test_url_benchmarks.py::test_human_repr
CodSpeed Performance Gauge
0%
10.3 ms
10.3 ms
test_url_equality
tests/test_url_benchmarks.py::test_url_equality
CodSpeed Performance Gauge
0%
303.3 µs
303 µs
test_url_build_access_username_password
tests/test_url_benchmarks.py::test_url_build_access_username_password
CodSpeed Performance Gauge
0%
682.7 µs
682.2 µs
test_unquoter_short
tests/test_quoting_benchmarks.py::test_unquoter_short
CodSpeed Performance Gauge
0%
123.5 µs
123.4 µs
test_with_query_none
tests/test_url_benchmarks.py::test_with_query_none
CodSpeed Performance Gauge
0%
96.1 µs
96 µs
test_url_build_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_and_port
CodSpeed Performance Gauge
0%
589 µs
588.5 µs
test_url_make_access_fragment
tests/test_url_benchmarks.py::test_url_make_access_fragment
CodSpeed Performance Gauge
0%
166.9 µs
166.7 µs
test_url_build_access_raw_path
tests/test_url_benchmarks.py::test_url_build_access_raw_path
CodSpeed Performance Gauge
0%
539.2 µs
538.9 µs
test_url_make_access_username_password
tests/test_url_benchmarks.py::test_url_make_access_username_password
CodSpeed Performance Gauge
0%
189.9 µs
189.8 µs
test_url_with_path
tests/test_url_benchmarks.py::test_url_with_path
CodSpeed Performance Gauge
0%
204.2 µs
204.1 µs
test_empty_query_string_uncached
tests/test_url_benchmarks.py::test_empty_query_string_uncached
CodSpeed Performance Gauge
0%
79.2 µs
79.2 µs
test_path_safe_uncached
tests/test_url_benchmarks.py::test_path_safe_uncached
CodSpeed Performance Gauge
0%
155.2 µs
155.2 µs
test_raw_path_qs_with_query_uncached
tests/test_url_benchmarks.py::test_raw_path_qs_with_query_uncached
CodSpeed Performance Gauge
0%
118.3 µs
118.2 µs
test_with_query_empty
tests/test_url_benchmarks.py::test_with_query_empty
CodSpeed Performance Gauge
0%
100.3 µs
100.3 µs
test_quote_query_string
tests/test_quoting_benchmarks.py::test_quote_query_string
CodSpeed Performance Gauge
0%
143.6 µs
143.6 µs
test_raw_host_empty_cache
tests/test_url_benchmarks.py::test_raw_host_empty_cache
CodSpeed Performance Gauge
0%
233.4 µs
233.3 µs
test_url_build_with_different_hosts
tests/test_url_benchmarks.py::test_url_build_with_different_hosts
CodSpeed Performance Gauge
0%
981.4 µs
981.3 µs
test_long_query
tests/test_quoting_benchmarks.py::test_long_query
CodSpeed Performance Gauge
0%
2.2 ms
2.2 ms
test_quote_long_path
tests/test_quoting_benchmarks.py::test_quote_long_path
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_url_build_access_fragment
tests/test_url_benchmarks.py::test_url_build_access_fragment
CodSpeed Performance Gauge
0%
475 µs
475 µs
test_long_query_with_pct
tests/test_quoting_benchmarks.py::test_long_query_with_pct
CodSpeed Performance Gauge
0%
9.5 ms
9.5 ms
test_empty_raw_path_qs_uncached
tests/test_url_benchmarks.py::test_empty_raw_path_qs_uncached
CodSpeed Performance Gauge
0%
93.2 µs
93.2 µs
test_quoter_quote_utf8
tests/test_quoting_benchmarks.py::test_quoter_quote_utf8
CodSpeed Performance Gauge
0%
390.2 µs
390.3 µs
test_url_build_access_raw_host
tests/test_url_benchmarks.py::test_url_build_access_raw_host
CodSpeed Performance Gauge
0%
601.1 µs
601.2 µ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%
182.3 µs
182.3 µs
test_url_with_port
tests/test_url_benchmarks.py::test_url_with_port
CodSpeed Performance Gauge
0%
305.7 µs
305.7 µs
test_quoter_pct
tests/test_quoting_benchmarks.py::test_quoter_pct
CodSpeed Performance Gauge
0%
140.6 µs
140.7 µ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%
134.4 µs
134.4 µs
test_with_query_sequence_mapping
tests/test_url_benchmarks.py::test_with_query_sequence_mapping
CodSpeed Performance Gauge
0%
2.9 ms
2.9 ms
test_url_make_access_raw_host
tests/test_url_benchmarks.py::test_url_make_access_raw_host
CodSpeed Performance Gauge
0%
164.4 µs
164.5 µs
test_query
tests/test_url_benchmarks.py::test_query
CodSpeed Performance Gauge
0%
47.5 µs
47.5 µs
test_url_make_no_netloc
tests/test_url_benchmarks.py::test_url_make_no_netloc
CodSpeed Performance Gauge
0%
134.8 µs
134.9 µ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%
134.3 µs
134.4 µs
test_empty_path_safe_uncached
tests/test_url_benchmarks.py::test_empty_path_safe_uncached
CodSpeed Performance Gauge
0%
87.9 µs
87.9 µs
test_url_join
tests/test_url_benchmarks.py::test_url_join
CodSpeed Performance Gauge
0%
190.2 µs
190.4 µs
test_unquoter_long_pct
tests/test_quoting_benchmarks.py::test_unquoter_long_pct
CodSpeed Performance Gauge
0%
7.5 ms
7.5 ms
test_empty_query_string
tests/test_url_benchmarks.py::test_empty_query_string
CodSpeed Performance Gauge
0%
47.8 µs
47.9 µ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%
134.3 µs
134.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 ms
1.1 ms
test_unquoter_long_ascii
tests/test_quoting_benchmarks.py::test_unquoter_long_ascii
CodSpeed Performance Gauge
0%
4.9 ms
4.9 ms
test_url_make_no_netloc_relative
tests/test_url_benchmarks.py::test_url_make_no_netloc_relative
CodSpeed Performance Gauge
0%
134.4 µs
134.6 µs
test_update_query_sequence_mapping
tests/test_url_benchmarks.py::test_update_query_sequence_mapping
CodSpeed Performance Gauge
0%
3.2 ms
3.2 ms
test_url_to_string
tests/test_url_benchmarks.py::test_url_to_string
CodSpeed Performance Gauge
0%
200.2 µs
200.6 µs
test_url_host_port_subcomponent
tests/test_url_benchmarks.py::test_url_host_port_subcomponent
CodSpeed Performance Gauge
0%
455.9 µs
457.2 µs
test_raw_path_qs_with_query
tests/test_url_benchmarks.py::test_raw_path_qs_with_query
CodSpeed Performance Gauge
0%
54.2 µs
54.3 µs
test_update_query_mapping
tests/test_url_benchmarks.py::test_update_query_mapping
CodSpeed Performance Gauge
0%
822.8 µs
825.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%
134.5 µs
135.1 µs
test_url_build_with_simple_query
tests/test_url_benchmarks.py::test_url_build_with_simple_query
CodSpeed Performance Gauge
0%
2.2 ms
2.2 ms
test_url_joinpath_encoded
tests/test_url_benchmarks.py::test_url_joinpath_encoded
CodSpeed Performance Gauge
0%
492.4 µs
494.7 µs
test_empty_path_safe
tests/test_url_benchmarks.py::test_empty_path_safe
CodSpeed Performance Gauge
-1%
52.3 µs
52.6 µ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.2 ms
3.2 ms
test_url_hash
tests/test_url_benchmarks.py::test_url_hash
CodSpeed Performance Gauge
-1%
182.1 µs
183.7 µs
test_update_query_none
tests/test_url_benchmarks.py::test_update_query_none
CodSpeed Performance Gauge
-1%
79.1 µs
80.1 µs
test_empty_raw_path_qs
tests/test_url_benchmarks.py::test_empty_raw_path_qs
CodSpeed Performance Gauge
-2%
53.1 µs
54 µs
test_url_joinpath_encoded_long
tests/test_url_benchmarks.py::test_url_joinpath_encoded_long
CodSpeed Performance Gauge
-3%
835.2 µs
861.7 µs

Commits

Click on a commit to change the comparison range
Base
master
c1f6ef6
0%
Add CHANGES/1392.feature.rst
09b8eb5
3 months ago
by oleksbabieiev
0%
Update yarl/_url.py
31f9eec
3 months ago
by bdraco
0%
Update docs for `URL.__sub__(url)`
2341ece
3 months ago
by oleksbabieiev
0%
Rename `URL.__sub__` to `URL.relative_to`
4033cb7
1 month ago
by oleksbabieiev
-7%
Update xfail test for `URL.relative_to`
6a9d13b
1 month ago
by oleksbabieiev
+8%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
ad61c24
30 days ago
by pre-commit-ci[bot]
Home Terms PrivacyDocs