_expected_large_payload_json_bytes() — fastapi Function Reference
Architecture documentation for the _expected_large_payload_json_bytes() function in test_general_performance.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD ce9c9865_5e02_16ea_ba36_3c2125d22b44["_expected_large_payload_json_bytes()"] f301437d_898d_b160_f85f_b6788c3d5890["test_general_performance.py"] ce9c9865_5e02_16ea_ba36_3c2125d22b44 -->|defined in| f301437d_898d_b160_f85f_b6788c3d5890 78a03210_b0fe_1b4a_1800_25c8691b1f3c["test_sync_return_large_dict_without_response_model()"] 78a03210_b0fe_1b4a_1800_25c8691b1f3c -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 44bd509c_c8c0_f988_6d33_37991bf35466["test_sync_return_large_dict_with_response_model()"] 44bd509c_c8c0_f988_6d33_37991bf35466 -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 eeced3c8_7b91_c068_1e55_e26cbb6d9a4a["test_sync_return_large_model_without_response_model()"] eeced3c8_7b91_c068_1e55_e26cbb6d9a4a -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 b82969d9_0995_01c0_d5ae_4ea9ccaa76c9["test_sync_return_large_model_with_response_model()"] b82969d9_0995_01c0_d5ae_4ea9ccaa76c9 -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 4bed865a_3091_9033_243a_dcf9e22fdd7c["test_async_return_large_dict_without_response_model()"] 4bed865a_3091_9033_243a_dcf9e22fdd7c -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 9b8039a2_f79f_bfd8_4e6c_bf98445893d8["test_async_return_large_dict_with_response_model()"] 9b8039a2_f79f_bfd8_4e6c_bf98445893d8 -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 96673359_e4da_fff0_6c42_e0a9e8b2d3bc["test_async_return_large_model_without_response_model()"] 96673359_e4da_fff0_6c42_e0a9e8b2d3bc -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 e747f50e_f186_3faa_4fc3_4421c9d76a08["test_async_return_large_model_with_response_model()"] e747f50e_f186_3faa_4fc3_4421c9d76a08 -->|calls| ce9c9865_5e02_16ea_ba36_3c2125d22b44 style ce9c9865_5e02_16ea_ba36_3c2125d22b44 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/benchmarks/test_general_performance.py lines 313–319
def _expected_large_payload_json_bytes() -> bytes:
return json.dumps(
LARGE_PAYLOAD,
ensure_ascii=False,
allow_nan=False,
separators=(",", ":"),
).encode("utf-8")
Domain
Subdomains
Defined In
Called By
- test_async_return_large_dict_with_response_model()
- test_async_return_large_dict_without_response_model()
- test_async_return_large_model_with_response_model()
- test_async_return_large_model_without_response_model()
- test_sync_return_large_dict_with_response_model()
- test_sync_return_large_dict_without_response_model()
- test_sync_return_large_model_with_response_model()
- test_sync_return_large_model_without_response_model()
Source
Frequently Asked Questions
What does _expected_large_payload_json_bytes() do?
_expected_large_payload_json_bytes() is a function in the fastapi codebase, defined in tests/benchmarks/test_general_performance.py.
Where is _expected_large_payload_json_bytes() defined?
_expected_large_payload_json_bytes() is defined in tests/benchmarks/test_general_performance.py at line 313.
What calls _expected_large_payload_json_bytes()?
_expected_large_payload_json_bytes() is called by 8 function(s): test_async_return_large_dict_with_response_model, test_async_return_large_dict_without_response_model, test_async_return_large_model_with_response_model, test_async_return_large_model_without_response_model, test_sync_return_large_dict_with_response_model, test_sync_return_large_dict_without_response_model, test_sync_return_large_model_with_response_model, test_sync_return_large_model_without_response_model.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free