BlogDocs

Rework of the URL subtraction feature(#1392)

Comparing
oleksbabieiev:subtraction
(
2341ece
) with
master
(
8ce8d67
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
83
NEW
2
DROPPED
0
IGNORED
1

Benchmarks

New

test_url_subtract
tests/test_url_benchmarks.py::test_url_subtract
N/A
N/A
13.6 ms
test_url_subtract_long_urls
tests/test_url_benchmarks.py::test_url_subtract_long_urls
N/A
N/A
157.6 ms

Passed

test_update_query_mapping
tests/test_url_benchmarks.py::test_update_query_mapping
+1%
882.3 µs
869.4 µs
test_url_with_port
tests/test_url_benchmarks.py::test_url_with_port
+1%
436.7 µs
430.9 µs
test_url_extend_query_existing_query_string
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_string
+1%
191.1 µs
189 µs
test_url_build_access_raw_host
tests/test_url_benchmarks.py::test_url_build_access_raw_host
+1%
606.3 µs
602 µs
test_url_build_access_username_password
tests/test_url_benchmarks.py::test_url_build_access_username_password
+1%
689.3 µs
685.1 µs
test_url_build_access_raw_path
tests/test_url_benchmarks.py::test_url_build_access_raw_path
+1%
553.8 µs
550.5 µs
test_url_host_port_subcomponent
tests/test_url_benchmarks.py::test_url_host_port_subcomponent
0%
466.2 µs
464.1 µs
test_url_make_access_username_password
tests/test_url_benchmarks.py::test_url_make_access_username_password
0%
194.4 µs
193.5 µs
test_url_with_path_to_string
tests/test_url_benchmarks.py::test_url_with_path_to_string
0%
265 µs
263.9 µs
test_url_make_encoded_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_make_encoded_with_host_path_and_port
0%
189.1 µs
188.4 µs
test_url_with_name
tests/test_url_benchmarks.py::test_url_with_name
0%
455.9 µs
454.4 µs
test_url_build_access_fragment
tests/test_url_benchmarks.py::test_url_build_access_fragment
0%
499.5 µs
498 µs
test_human_repr
tests/test_url_benchmarks.py::test_human_repr
0%
10.4 ms
10.4 ms
test_url_with_user
tests/test_url_benchmarks.py::test_url_with_user
0%
438.5 µs
437.3 µs
test_empty_query
tests/test_url_benchmarks.py::test_empty_query
0%
46.9 µs
46.8 µs
test_url_with_fragment
tests/test_url_benchmarks.py::test_url_with_fragment
0%
298.2 µs
297.5 µs
test_url_joinpath_encoded
tests/test_url_benchmarks.py::test_url_joinpath_encoded
0%
749.8 µs
748 µs
test_with_query_sequence_mapping
tests/test_url_benchmarks.py::test_with_query_sequence_mapping
0%
3.2 ms
3.2 ms
test_url_build_with_host
tests/test_url_benchmarks.py::test_url_build_with_host
0%
405.5 µs
404.8 µs
test_url_build_with_simple_query
tests/test_url_benchmarks.py::test_url_build_with_simple_query
0%
2.5 ms
2.5 ms
test_with_query_mapping_int_values
tests/test_url_benchmarks.py::test_with_query_mapping_int_values
0%
940.1 µs
938.9 µs
test_url_with_path_parent
tests/test_url_benchmarks.py::test_url_with_path_parent
0%
435.9 µs
435.3 µs
test_query_string
tests/test_url_benchmarks.py::test_query_string
0%
47.5 µs
47.4 µs
test_quoter_ascii
tests/test_quoting_benchmarks.py::test_quoter_ascii
0%
73.6 µs
73.5 µs
test_with_query_empty
tests/test_url_benchmarks.py::test_with_query_empty
0%
112.2 µs
112.1 µs
test_url_build_with_different_hosts
tests/test_url_benchmarks.py::test_url_build_with_different_hosts
0%
1 ms
1 ms
test_url_with_scheme
tests/test_url_benchmarks.py::test_url_with_scheme
0%
266.3 µs
266 µs
test_unquoter_short
tests/test_quoting_benchmarks.py::test_unquoter_short
0%
125.9 µs
125.8 µs
test_url_make_with_ipv6_address_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_ipv6_address_path_and_port
0%
139.1 µs
139 µs
test_url_build_no_netloc
tests/test_url_benchmarks.py::test_url_build_no_netloc
0%
352.8 µs
352.5 µs
test_url_with_path_relative
tests/test_url_benchmarks.py::test_url_with_path_relative
0%
232.1 µs
232 µs
test_url_with_path_origin
tests/test_url_benchmarks.py::test_url_with_path_origin
0%
80.5 µs
80.4 µs
test_quoter_pct
tests/test_quoting_benchmarks.py::test_quoter_pct
0%
145.3 µs
145.2 µs
test_url_origin
tests/test_url_benchmarks.py::test_url_origin
0%
81.1 µs
81.1 µs
test_url_equality
tests/test_url_benchmarks.py::test_url_equality
0%
310.7 µs
310.6 µs
test_quoter_quote_utf8
tests/test_quoting_benchmarks.py::test_quoter_quote_utf8
0%
393.4 µs
393.2 µs
test_url_make_with_many_ipv4_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_ipv4_hosts
0%
3.3 ms
3.3 ms
test_extend_query_subclassed_str
tests/test_url_benchmarks.py::test_extend_query_subclassed_str
0%
936.9 µs
936.8 µs
test_long_query_with_pct
tests/test_quoting_benchmarks.py::test_long_query_with_pct
0%
9.7 ms
9.7 ms
test_long_query
tests/test_quoting_benchmarks.py::test_long_query
0%
2.2 ms
2.2 ms
test_empty_query_string
tests/test_url_benchmarks.py::test_empty_query_string
0%
46.4 µs
46.4 µs
test_quote_long_path
tests/test_quoting_benchmarks.py::test_quote_long_path
0%
1.8 ms
1.8 ms
test_with_query_mapping
tests/test_url_benchmarks.py::test_with_query_mapping
0%
610.9 µs
610.9 µs
test_quote_query_string
tests/test_quoting_benchmarks.py::test_quote_query_string
0%
148 µs
148.1 µs
test_url_make_with_ipv6_address_and_path
tests/test_url_benchmarks.py::test_url_make_with_ipv6_address_and_path
0%
139.1 µs
139.1 µs
test_url_make_access_fragment
tests/test_url_benchmarks.py::test_url_make_access_fragment
0%
167.7 µs
167.8 µs
test_url_origin_with_user_pass
tests/test_url_benchmarks.py::test_url_origin_with_user_pass
0%
80.4 µs
80.4 µs
test_url_make_with_ipv4_address_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_ipv4_address_path_and_port
0%
140.1 µs
140.1 µs
test_url_make_access_raw_path
tests/test_url_benchmarks.py::test_url_make_access_raw_path
0%
167.3 µs
167.4 µs
test_url_make_with_host_and_path
tests/test_url_benchmarks.py::test_url_make_with_host_and_path
0%
139.6 µs
139.6 µs
test_url_make_no_netloc_relative
tests/test_url_benchmarks.py::test_url_make_no_netloc_relative
0%
139 µs
139.1 µs
test_url_to_string
tests/test_url_benchmarks.py::test_url_to_string
0%
244.8 µs
244.9 µs
test_url_make_empty_password
tests/test_url_benchmarks.py::test_url_make_empty_password
0%
139.1 µs
139.1 µs
test_url_joinpath_with_truediv
tests/test_url_benchmarks.py::test_url_joinpath_with_truediv
0%
881.4 µs
881.9 µs
test_is_default_port
tests/test_url_benchmarks.py::test_is_default_port
0%
178.4 µs
178.5 µs
test_url_make_no_netloc
tests/test_url_benchmarks.py::test_url_make_no_netloc
0%
139 µs
139.1 µs
test_url_make_with_many_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_hosts
0%
3.3 ms
3.3 ms
test_url_make_access_raw_host
tests/test_url_benchmarks.py::test_url_make_access_raw_host
0%
168.1 µs
168.2 µs
test_url_with_host
tests/test_url_benchmarks.py::test_url_with_host
0%
493.5 µs
494.1 µs
test_url_make_empty_username
tests/test_url_benchmarks.py::test_url_make_empty_username
0%
140.3 µs
140.5 µs
test_url_make_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_make_with_host_path_and_port
0%
139 µs
139.1 µs
test_update_query_none
tests/test_url_benchmarks.py::test_update_query_none
0%
90.2 µs
90.3 µs
test_url_build_no_netloc_relative
tests/test_url_benchmarks.py::test_url_build_no_netloc_relative
0%
349.8 µs
350.4 µs
test_url_make_with_many_ipv6_hosts
tests/test_url_benchmarks.py::test_url_make_with_many_ipv6_hosts
0%
4.4 ms
4.5 ms
test_url_build_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_and_port
0%
612.1 µs
613.4 µs
test_with_query_none
tests/test_url_benchmarks.py::test_with_query_none
0%
107.7 µs
107.9 µs
test_raw_host_empty_cache
tests/test_url_benchmarks.py::test_raw_host_empty_cache
0%
237.8 µs
238.4 µs
test_query
tests/test_url_benchmarks.py::test_query
0%
46.8 µs
46.9 µs
test_update_query_empty
tests/test_url_benchmarks.py::test_update_query_empty
0%
94.3 µs
94.5 µs
test_url_join
tests/test_url_benchmarks.py::test_url_join
0%
260.6 µs
261.3 µs
test_unquoter_long_pct
tests/test_quoting_benchmarks.py::test_unquoter_long_pct
0%
6.9 ms
6.9 ms
test_url_build_encoded_with_host_and_port
tests/test_url_benchmarks.py::test_url_build_encoded_with_host_and_port
0%
396.7 µs
398.1 µs
test_url_with_query_to_string
tests/test_url_benchmarks.py::test_url_with_query_to_string
0%
300.3 µs
301.4 µs
test_url_hash
tests/test_url_benchmarks.py::test_url_hash
0%
193.1 µs
193.9 µs
test_url_extend_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_simple_query_dict
0%
609.4 µs
612.2 µs
test_url_with_path
tests/test_url_benchmarks.py::test_url_with_path
0%
308.2 µs
309.6 µs
test_url_extend_query_existing_query_simple_query_dict
tests/test_url_benchmarks.py::test_url_extend_query_existing_query_simple_query_dict
0%
631.7 µs
634.7 µs
test_unquoter_long_ascii
tests/test_quoting_benchmarks.py::test_unquoter_long_ascii
-1%
4.3 ms
4.4 ms
test_url_build_with_host_path_and_port
tests/test_url_benchmarks.py::test_url_build_with_host_path_and_port
-1%
528.3 µs
531.2 µs
test_url_make_with_ipv4_address_and_path
tests/test_url_benchmarks.py::test_url_make_with_ipv4_address_and_path
-1%
139 µs
139.8 µs
test_update_query_sequence_mapping
tests/test_url_benchmarks.py::test_update_query_sequence_mapping
-1%
3.5 ms
3.5 ms
test_url_with_password
tests/test_url_benchmarks.py::test_url_with_password
-1%
444.5 µs
448.6 µs
test_update_query_string
tests/test_url_benchmarks.py::test_update_query_string
-1%
683.4 µs
693.4 µs

Ignored

test_update_query_mapping_with_existing_queryIgnored
tests/test_url_benchmarks.py::test_update_query_mapping_with_existing_query
0%
1.1 ms
1.1 ms

Commits

Click on a commit to change the comparison range
base
master
8ce8d67
0%
Add CHANGES/1392.feature.rst
09b8eb5
14 days ago
by oleksbabieiev
0%
Update yarl/_url.py
31f9eec
9 days ago
by bdraco
0%
Update docs for `URL.__sub__(url)`
2341ece
9 days ago
by oleksbabieiev
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.