aio-libs
aiohttp
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Avoid multiple slice calls in the WebSocket reader
#9636
Merged
Comparing
avoid_slice_empty_tail
(
c828cca
) with
master
(
c95c025
)
CodSpeed Performance Gauge
+16%
Improvement
1
Untouched
7
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
8 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_read_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
+16%
544.5 µs
470.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_send_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
562.7 µs
560.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_serialize_headers
tests/test_benchmarks_http_writer.py
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_load_cookies_into_temp_cookiejar
tests/test_benchmarks_cookiejar.py
CodSpeed Performance Gauge
0%
209.7 µs
209.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_client_request_update_cookies[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
0%
178.3 µs
178.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_client_request_with_headers[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
0%
76.1 µs
76.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_send_one_hundred_websocket_text_messages_with_mask[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
804.3 µs
807.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_create_client_request_with_cookies[pyloop]
tests/test_benchmarks_client_request.py
CodSpeed Performance Gauge
-1%
134.4 µs
135.7 µs
Commits
Click on a commit to change the comparison range
Base
master
c95c025
+1.66%
Avoid slice in the WebSocket reader when the tail is empty
77e1657
1 year ago
by bdraco
+14.25%
avoid another slice
825f2be
1 year ago
by bdraco
-0.2%
changelog
c828cca
1 year ago
by bdraco
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs