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

[PR #11085/51698fb1 backport][3.13] Replace expensive isinstance checks with faster alternatives

#11087Merged
Comparing
patchback/backports/3.13/51698fb1a00a2f632158a5db170a488c6bdf0063/pr-11085
(
21d2a05
) with
3.13
(
6bf919a
)
CodSpeed Performance Gauge
0%
Untouched
66

Benchmarks

66 total
test_create_client_request_with_cookies[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
+4%
126.5 µs121.8 µs
test_client_receive_large_websocket_compressed_messages[isal.isal_zlib-pyloop]
tests/test_benchmarks_client_ws.py
CodSpeed Performance Gauge
+3%
19.8 ms19.2 ms
test_load_cookies_into_temp_cookiejar
tests/test_benchmarks_cookiejar.py
CodSpeed Performance Gauge
+3%
189.3 µs183.4 µs
test_client_send_large_websocket_compressed_messages[isal.isal_zlib-pyloop]
tests/test_benchmarks_client_ws.py
CodSpeed Performance Gauge
+3%
19.8 ms19.2 ms
test_client_request_update_cookies[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
+2%
165.8 µs161.9 µs
test_web_response_with_headers
tests/test_benchmarks_web_response.py
CodSpeed Performance Gauge
+1%
703.1 µs695.6 µs
test_simple_web_stream_response
tests/test_benchmarks_web_response.py
CodSpeed Performance Gauge
+1%
256.5 µs254.1 µs
test_simple_web_response
tests/test_benchmarks_web_response.py
CodSpeed Performance Gauge
+1%
464.4 µs460.7 µs
test_ten_web_middlewares[pyloop]
tests/test_benchmarks_web_middleware.py
CodSpeed Performance Gauge
+1%
36 ms35.8 ms
test_send_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
+1%
563.3 µs560.4 µs
test_one_hundred_get_requests_with_30000_chunked_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
41 ms40.8 ms
test_one_hundred_simple_get_requests_multiple_methods_route[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
33 ms32.8 ms
test_web_response_with_text_body
tests/test_benchmarks_web_response.py
CodSpeed Performance Gauge
0%
679.3 µs676.1 µs
test_send_one_hundred_websocket_text_messages_with_mask[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
798.9 µs795.2 µs
test_one_hundred_get_requests_with_1024_content_length_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
35.5 ms35.3 ms
test_one_hundred_simple_get_requests_alternating_clients[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
33.9 ms33.7 ms
test_one_hundred_simple_post_requests[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
37 ms36.9 ms
test_one_hundred_simple_get_requests[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
33.2 ms33.1 ms
test_web_response_with_bytes_body
tests/test_benchmarks_web_response.py
CodSpeed Performance Gauge
0%
560.9 µs558.6 µs
test_ten_streamed_responses_iter_chunked_65536[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
23 ms22.9 ms
test_one_hundred_get_requests_with_30000_content_length_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
40.7 ms40.6 ms
test_simple_web_file_response_not_modified[pyloop]
tests/test_benchmarks_web_fileresponse.py
CodSpeed Performance Gauge
0%
56 ms55.8 ms
test_one_thousand_round_trip_websocket_binary_messages[pyloop-small]
tests/test_benchmarks_client_ws.py
CodSpeed Performance Gauge
0%
16.4 ms16.3 ms
test_one_hundred_json_post_requests[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
38.8 ms38.7 ms
test_one_hundred_get_requests_with_1024_chunked_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
35.8 ms35.6 ms

Commits

Click on a commit to change the comparison range
Base
3.13
6bf919a
+0.27%
Replace expensive isinstance checks with faster alternatives (#11085)
21d2a05
1 year ago
by bdraco
© 2026 CodSpeed Technology
Home Terms Privacy Docs