Avatar for the sparckles user
sparckles
Robyn
BlogDocsChangelog

wip feat: improve middleware performance by 50%

#1209
Comparing
fix/middleware-performance
(
cdd6889
) with
main
(
3e04c65
)
CodSpeed Performance Gauge
0%
Untouched
189

Benchmarks

189 total
test_invalid_authentication_header_trailing_slash[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+3%
2.6 ms2.6 ms
test_invalid_authentication_header_trailing_slash[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+3%
2.6 ms2.6 ms
test_invalid_authentication_header[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+3%
2.6 ms2.6 ms
test_invalid_authentication_no_token[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+3%
2.6 ms2.5 ms
test_invalid_authentication_token[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+3%
2.6 ms2.6 ms
test_invalid_authentication_no_token[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+2%
2.6 ms2.5 ms
test_invalid_authentication_token_trailing_slash[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+2%
2.6 ms2.6 ms
test_invalid_authentication_header[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+2%
2.6 ms2.6 ms
test_invalid_authentication_token_trailing_slash[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+2%
2.6 ms2.6 ms
test_invalid_authentication_token[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+2%
2.6 ms2.6 ms
test_response_in_before_middleware
integration_tests/test_middlewares.py
CodSpeed Performance Gauge
+2%
2.6 ms2.5 ms
test_json_get[/async/json/const-expected_json3]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_exception_handling[/async/post/no_dec-post]
integration_tests/test_add_route_without_decorator.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_http_request_info_get[/sync/http/param-expected_json0]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_default_url_index_request
integration_tests/test_base_url.py
CodSpeed Performance Gauge
+1%
2.5 ms2.5 ms
test_local_index_request
integration_tests/test_base_url.py
CodSpeed Performance Gauge
+1%
2.5 ms2.5 ms
test_json_body_bare[async]
integration_tests/test_split_request_params.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_custom_openapi_spec
integration_tests/test_openapi.py
CodSpeed Performance Gauge
+1%
742.5 µs738.5 µs
test_global_index_request
integration_tests/test_base_url.py
CodSpeed Performance Gauge
+1%
2.6 ms2.5 ms
test_multipart_file[sync]
integration_tests/test_multipart_data.py
CodSpeed Performance Gauge
0%
2.9 ms2.8 ms
test_sync_500_internal_server_error[async]
integration_tests/test_status_code.py
CodSpeed Performance Gauge
0%
2.6 ms2.5 ms
test_valid_authentication_trailing_slash[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_add_response_header
integration_tests/test_app.py
CodSpeed Performance Gauge
0%
635.7 µs632.8 µs
test_json_body_typed[async]
integration_tests/test_split_request_params.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_valid_authentication_trailing_slash[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms

Commits

Click on a commit to change the comparison range
Base
main
3e04c65
+0.31%
feat: improve middleware performance by 50%
cdd6889
9 months ago
by sansyrox
© 2026 CodSpeed Technology
Home Terms Privacy Docs