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

Add rate limiting middleware example and introduce tests for examples

#11969
Comparing
rodrigobnogueira:add-rate-limit-middleware-example
(
fe72729
) with
master
(
2834525
)
CodSpeed Performance Gauge
0%
Untouched
59
Ignored
7

Benchmarks

66 total
test_simple_web_file_response[pyloop]
tests/test_benchmarks_web_fileresponse.py
CodSpeed Performance Gauge
+1%
79 ms78 ms
test_resolve_multiple_fixed_url_with_many_routes[pyloop]
tests/test_benchmarks_web_urldispatcher.py
CodSpeed Performance Gauge
+1%
2.3 ms2.2 ms
test_ten_streamed_responses_iter_chunked_65536[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
23.2 ms23 ms
test_resolve_multiple_level_fixed_url_with_many_routes[pyloop]
tests/test_benchmarks_web_urldispatcher.py
CodSpeed Performance Gauge
+1%
8.8 ms8.7 ms
test_one_hundred_simple_get_requests[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
33.5 ms33.3 ms
test_one_hundred_simple_get_requests_alternating_clients[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
34.2 ms34 ms
test_one_hundred_json_post_requests[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
39.3 ms39.1 ms
test_one_hundred_get_requests_with_1024_chunked_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
36.1 ms35.9 ms
test_one_hundred_get_requests_with_1024_content_length_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
35.7 ms35.5 ms
test_one_hundred_simple_get_requests_multiple_methods_route[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
33.3 ms33.1 ms
test_one_hundred_simple_post_requests[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
+1%
37.5 ms37.3 ms
test_send_one_hundred_large_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
583.8 µs580.9 µs
test_one_hundred_get_requests_with_30000_chunked_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
41.3 ms41.1 ms
test_ten_web_middlewares[pyloop]
tests/test_benchmarks_web_middleware.py
CodSpeed Performance Gauge
0%
36.2 ms36 ms
test_one_hundred_get_requests_with_30000_content_length_payload[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
41 ms40.8 ms
test_one_hundred_simple_get_requests_no_session[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
88.2 ms87.8 ms
test_serialize_headers
tests/test_benchmarks_http_writer.py
CodSpeed Performance Gauge
0%
858.6 µs855.2 µs
test_load_cookies_into_temp_cookiejar
tests/test_benchmarks_cookiejar.py
CodSpeed Performance Gauge
0%
189.9 µs189.2 µs
test_simple_web_file_response_not_modified[pyloop]
tests/test_benchmarks_web_fileresponse.py
CodSpeed Performance Gauge
0%
55.6 ms55.4 ms
test_ten_streamed_responses_iter_chunks[pyloop]
tests/test_benchmarks_client.py
CodSpeed Performance Gauge
0%
16.3 ms16.2 ms
test_send_one_hundred_websocket_text_messages_with_mask[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
839.6 µs836.7 µs
test_send_one_hundred_websocket_text_messages[pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
599.8 µs597.9 µs
test_send_one_hundred_websocket_compressed_messages[zlib_ng.zlib_ng-pyloop]
tests/test_benchmarks_http_websocket.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_one_thousand_round_trip_websocket_binary_messages[pyloop-small]
tests/test_benchmarks_client_ws.py
CodSpeed Performance Gauge
0%
16.7 ms16.7 ms
test_resolve_single_fixed_url_with_many_routes[pyloop]
tests/test_benchmarks_web_urldispatcher.py
CodSpeed Performance Gauge
0%
905.2 µs903.2 µs

Commits

Click on a commit to change the comparison range
Base
master
2834525
+0.07%
Add pytest smoke tests for examples
4d6c2c4
13 days ago
-0.01%
Add pragma: no cover to test assertion failure message
d95d448
13 days ago
-0.17%
fix: add examples/__init__.py to resolve mypy module name conflict and suppress flake8 I900 for local imports
cfcbb1c
12 days ago
+0.25%
fix: suppress mypy misc errors for pytest markers on async tests
35745f8
12 days ago
-0.06%
[pre-commit.ci] auto fixes from pre-commit.com hooks
17d1993
12 days ago
by pre-commit-ci[bot]
+0.11%
[pre-commit.ci] auto fixes from pre-commit.com hooks
f64fb4a
12 days ago
by pre-commit-ci[bot]
+0.07%
feat: add functional tests for examples and fix mypy errors in middleware examples
ac1603f
12 days ago
-0.01%
feat: add guards to client/lowlevel examples and functional tests for cli_app and lowlevel_srv
90a57fd
12 days ago
-0.02%
Refactor and test all aiohttp examples
6efb6a8
12 days ago
-0.15%
Fix CodeQL empty except warning in lowlevel_srv.py
be11a66
12 days ago
-0.15%
feat: add rate limiting middleware example and refactor existing examples for improved testability.
3088e87
12 days ago
+0.19%
fix(examples): make valkey import conditional for testing without valkey installed
c22e9b7
11 days ago
+0.03%
[pre-commit.ci] auto fixes from pre-commit.com hooks
04d5bdc
11 days ago
by pre-commit-ci[bot]
-0.2%
Address maintainer feedback: update setup.cfg, refactor test_examples, fix lowlevel_srv
9a6db41
9 hours ago
+0.1%
fix: Restore `examples/__init__.py` to resolve mypy errors
0c147b3
9 hours ago
+0.2%
fix: restore sys.path for functional tests and keep examples/__init__.py for mypy
77c26c1
9 hours ago
-0.16%
fix: add delay in test_client_ws to fix race condition
48d98bf
9 hours ago
+0.06%
feat: Refactor all examples to be self-contained and runnable as subprocesses for testing.
80962a1
8 hours ago
+0.11%
[pre-commit.ci] auto fixes from pre-commit.com hooks
7975603
7 hours ago
by pre-commit-ci[bot]
-0.16%
[pre-commit.ci] auto fixes from pre-commit.com hooks
fe72729
7 hours ago
by pre-commit-ci[bot]
© 2026 CodSpeed Technology
Home Terms Privacy Docs