aio-libs
aiohttp
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Avoid memory copy in the WebSocket reader for small payloads
#9649
Merged
Comparing
memcpy_websocket_reader
(
57649f7
) with
master
(
541b149
)
CodSpeed Performance Gauge
+41%
Improvement
2
Untouched
9
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
11 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_one_thousand_large_round_trip_websocket_text_messages[pyloop]
tests/test_benchmarks_client_ws.py
CodSpeed Performance Gauge
+41%
32.6 ms
23 ms
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
+34%
470.1 µs
351.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_one_thousand_round_trip_websocket_text_messages[pyloop]
tests/test_benchmarks_client_ws.py
CodSpeed Performance Gauge
+4%
21.9 ms
21 ms
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%
179.5 µs
178.9 µs
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%
207.5 µs
207 µ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
0%
135.4 µs
135.3 µ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_send_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
561.6 µs
562.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_send_one_hundred_large_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
662.4 µs
664.7 µ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
-1%
75.8 µ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
-1%
800.8 µs
809.6 µs
Commits
Click on a commit to change the comparison range
Base
master
541b149
+66.09%
cleanup
6dd9b14
1 year ago
by bdraco
+0.14%
cleanup
e90448c
1 year ago
by bdraco
0%
cleanup
338199b
1 year ago
by bdraco
+0.38%
dry
51e9841
1 year ago
by bdraco
-25.22%
cleanups
57649f7
1 year ago
by bdraco
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs