Avatar for the strawberry-graphql user
strawberry-graphql
strawberry
BlogDocsChangelog

[WIP] Add websockets support to Sanic

#3903
Comparing
DoctorJohn:add-websockets-support-to-sanic
(
e85a1ba
) with
main
(
758cd0b
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
21
New
0
Dropped
0
Ignored
1

Benchmarks

Passed

test_execute_with_10_items
tests/benchmarks/test_execute_sync.py::test_execute_with_10_items
CodSpeed Performance Gauge
+1%
5.3 ms
5.2 ms
test_subscription
tests/benchmarks/test_subscriptions.py::test_subscription
CodSpeed Performance Gauge
0%
211.2 ms
210.3 ms
test_subscription_long_run[1000]
tests/benchmarks/test_subscriptions.py::test_subscription_long_run[1000]
CodSpeed Performance Gauge
0%
177.7 ms
177.2 ms
test_execute_with_many_fields_and_directives
tests/benchmarks/test_execute_sync.py::test_execute_with_many_fields_and_directives
CodSpeed Performance Gauge
0%
42.9 ms
42.8 ms
test_execute[with_resolveextension-items_1000]
tests/benchmarks/test_execute_with_extensions.py::test_execute[with_resolveextension-items_1000]
CodSpeed Performance Gauge
0%
185.8 ms
185.3 ms
test_execute_with_many_fields
tests/benchmarks/test_execute_sync.py::test_execute_with_many_fields
CodSpeed Performance Gauge
0%
38.1 ms
38 ms
test_execute[with_no_extensions-items_10000]
tests/benchmarks/test_execute_with_extensions.py::test_execute[with_no_extensions-items_10000]
CodSpeed Performance Gauge
0%
638.5 ms
637.1 ms
test_execute_generic_input
tests/benchmarks/test_generic_input.py::test_execute_generic_input
CodSpeed Performance Gauge
0%
437.5 ms
436.6 ms
test_execute[with_resolveextension-items_10000]
tests/benchmarks/test_execute_with_extensions.py::test_execute[with_resolveextension-items_10000]
CodSpeed Performance Gauge
0%
1.9 s
1.9 s
test_execute[with_simpleextension-items_10000]
tests/benchmarks/test_execute_with_extensions.py::test_execute[with_simpleextension-items_10000]
CodSpeed Performance Gauge
0%
642.4 ms
641.2 ms
test_execute_with_100_items
tests/benchmarks/test_execute_sync.py::test_execute_with_100_items
CodSpeed Performance Gauge
0%
10.9 ms
10.9 ms
test_execute_with_1000_items
tests/benchmarks/test_execute_sync.py::test_execute_with_1000_items
CodSpeed Performance Gauge
0%
67.9 ms
67.8 ms
test_execute[with_no_extensions-items_1000]
tests/benchmarks/test_execute_with_extensions.py::test_execute[with_no_extensions-items_1000]
CodSpeed Performance Gauge
0%
68.3 ms
68.2 ms
test_subscription_long_run[20000]
tests/benchmarks/test_subscriptions.py::test_subscription_long_run[20000]
CodSpeed Performance Gauge
0%
3.4 s
3.4 s
test_execute
tests/benchmarks/test_execute.py::test_execute
CodSpeed Performance Gauge
0%
539.2 ms
539.1 ms
test_execute[with_simpleextension-items_1000]
tests/benchmarks/test_execute_with_extensions.py::test_execute[with_simpleextension-items_1000]
CodSpeed Performance Gauge
0%
68.5 ms
68.5 ms
test_execute_complex_schema[50]
tests/benchmarks/test_complex_schema.py::test_execute_complex_schema[50]
CodSpeed Performance Gauge
0%
4 s
4 s
test_interface_performance[256]
tests/benchmarks/test_execute.py::test_interface_performance[256]
CodSpeed Performance Gauge
-1%
61.4 ms
61.7 ms
test_interface_performance[16]
tests/benchmarks/test_execute.py::test_interface_performance[16]
CodSpeed Performance Gauge
-1%
59.2 ms
59.6 ms
test_interface_performance[4096]
tests/benchmarks/test_execute.py::test_interface_performance[4096]
CodSpeed Performance Gauge
-1%
68 ms
68.5 ms
test_interface_performance[1]
tests/benchmarks/test_execute.py::test_interface_performance[1]
CodSpeed Performance Gauge
-1%
59.1 ms
59.7 ms

Ignored

test_execute_basicIgnored
tests/benchmarks/test_execute_sync.py::test_execute_basic
CodSpeed Performance Gauge
+8%
2.3 ms
2.1 ms

Commits

Click on a commit to change the comparison range
Base
main
758cd0b
0%
WIP test client does not work the native sanic test client appears to be useless for testing websockets. they claim sanic apps can be run as asgi apps, but that changes the whole interface for websocket objects and breaks everything. nice
e85a1ba
7 days ago
by DoctorJohn
© 2025 CodSpeed Technology
Home Terms Privacy Docs