Avatar for the sparckles user
sparckles
Robyn
BlogDocsChangelog

feat: add BackgroundTasks for post-response execution

#1371
Comparing
feat/background-tasks
(
3dafc4e
) with
main
(
3e04c65
)
CodSpeed Performance Gauge
0%
Untouched
189

Benchmarks

189 total
test_json_get[/async/json/const-expected_json3]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
2.7 ms2.6 ms
test_exception_handling[/sync/get/no_dec-get]
integration_tests/test_add_route_without_decorator.py
CodSpeed Performance Gauge
+1%
3.6 ms3.6 ms
test_json_body_typed[sync]
integration_tests/test_split_request_params.py
CodSpeed Performance Gauge
+1%
2.9 ms2.9 ms
test_json_get[/async/json-expected_json1]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_json_get[/sync/json/const-expected_json2]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
2.7 ms2.6 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_sse_basic_headers
integration_tests/test_sse.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_invalid_authentication_token[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_basic_get[/async/dict/const-async dict const get-async_const-dict]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
3.2 ms3.2 ms
test_invalid_authentication_header_trailing_slash[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_serve_html[async]
integration_tests/test_get_requests.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_invalid_authentication_token[sync]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_global_index_request
integration_tests/test_base_url.py
CodSpeed Performance Gauge
+1%
2.6 ms2.5 ms
test_http_request_info_get[/async/http/param-expected_json1]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_json_get[/sync/json-expected_json0]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_sse_streaming_async_real_time
integration_tests/test_sse.py
CodSpeed Performance Gauge
0%
4 ms4 ms
test_exception_handling[/sync/put/no_dec-put]
integration_tests/test_add_route_without_decorator.py
CodSpeed Performance Gauge
0%
2.7 ms2.6 ms
test_basic_get[/async/str-async str get-None-None]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_invalid_authentication_header_trailing_slash[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_invalid_authentication_header[async]
integration_tests/test_authentication.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_file_download[async]
integration_tests/test_file_download.py
CodSpeed Performance Gauge
0%
2.7 ms2.6 ms
test_form_data[sync]
integration_tests/test_multipart_data.py
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_basic_get[/async/str/const-async str const get-None-None]
integration_tests/test_basic_routes.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_global_middleware_applied_to_const_routes[/async/dict/const]
integration_tests/test_middlewares.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms

Commits

Click on a commit to change the comparison range
Base
main
3e04c65
+0.32%
feat: add BackgroundTasks for post-response execution
6ed0eac
9 days ago
by sansyrox
-0.13%
fix: handle callable classes, missing __name__, and flaky test in BackgroundTasks
2f3bd96
9 days ago
by sansyrox
+0.01%
[pre-commit.ci] auto fixes from pre-commit.com hooks
3dafc4e
9 days ago
by pre-commit-ci[bot]
© 2026 CodSpeed Technology
Home Terms Privacy Docs