graphql-python
graphql-core
BlogDocsChangelog

1: Add Serialization Benchmark

#250Merged
Comparing
corydolphin:add-serialization-benchmark
(
837f604
) with
main
(
283d002
)
CodSpeed Performance Gauge
0%
Untouched
14
New
4

Benchmarks

New

test_pickle_large_query_encode
tests/benchmarks/test_serialization.py
CodSpeed Performance Gauge
N/A
N/A110.2 ms
test_pickle_large_query_roundtrip
tests/benchmarks/test_serialization.py
CodSpeed Performance Gauge
N/A
N/A318.5 ms
test_pickle_large_query_decode
tests/benchmarks/test_serialization.py
CodSpeed Performance Gauge
N/A
N/A208.5 ms
test_parse_large_query
tests/benchmarks/test_serialization.py
CodSpeed Performance Gauge
N/A
N/A417.5 ms

Passed

test_visit_all_ast_nodes
tests/benchmarks/test_visit.py
CodSpeed Performance Gauge
0%
200.9 ms200.4 ms
test_visit_all_ast_nodes_in_parallel
tests/benchmarks/test_visit.py
CodSpeed Performance Gauge
0%
1.6 s1.6 s
test_execute_async_iterable_list_field
tests/benchmarks/test_async_iterable.py
CodSpeed Performance Gauge
0%
13.4 ms13.4 ms
test_execute_basic_sync
tests/benchmarks/test_execution_sync.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_many_repeated_fields
tests/benchmarks/test_repeated_fields.py
CodSpeed Performance Gauge
0%
265.2 ms264.8 ms
test_validate_sdl_document
tests/benchmarks/test_validate_sdl.py
CodSpeed Performance Gauge
0%
426.2 ms425.7 ms
test_validate_introspection_query
tests/benchmarks/test_validate_gql.py
CodSpeed Performance Gauge
0%
15 ms15 ms
test_build_schema_from_ast
tests/benchmarks/test_build_ast_schema.py
CodSpeed Performance Gauge
0%
104.6 ms104.6 ms
test_parse_kitchen_sink
tests/benchmarks/test_parser.py
CodSpeed Performance Gauge
0%
6.8 ms6.8 ms
test_execute_introspection_query
tests/benchmarks/test_introspection_from_schema.py
CodSpeed Performance Gauge
0%
915 ms914.9 ms
test_build_schema_from_introspection
tests/benchmarks/test_build_client_schema.py
CodSpeed Performance Gauge
0%
115.8 ms115.9 ms
test_validate_invalid_query
tests/benchmarks/test_validate_invalid_gql.py
CodSpeed Performance Gauge
0%
99.7 ms99.8 ms
test_recreate_a_graphql_schema
tests/benchmarks/test_graphql_schema.py
CodSpeed Performance Gauge
0%
12.7 ms12.8 ms
test_execute_basic_async
tests/benchmarks/test_execution_async.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms

Commits

Click on a commit to change the comparison range
Base
main
283d002
+0.05%
Add Serialization Benchmark Introduce benchmarks using a large (~117KB) GraphQL query to measure parse and pickle serialization performance. These provide a baseline for comparing serialization approaches in subsequent commits. Baseline performance (measrued on a Macbook Pro M4 Max): - Parse: 81ms - Pickle encode: 24ms - Pickle decode: 42ms - Roundtrip: 71ms
837f604
3 days ago
by corydolphin
© 2026 CodSpeed Technology
Home Terms Privacy Docs