Avatar for the fastapi user
fastapi
fastapi
BlogDocsChangelog

🐛 Improve `jsonable_encoder` for other types of iterables

#13803
Comparing
Lob26:jsonable_encoder
(
54d94f1
) with
master
(
ff6a38a
)
CodSpeed Performance Gauge
-1%
Untouched
20

Benchmarks

20 total
test_async_return_dict_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
+1%
1.3 ms1.3 ms
test_async_return_large_model_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
+1%
3.8 ms3.8 ms
test_async_receiving_validated_pydantic_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
test_async_return_dict_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_sync_return_model_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
2.1 ms2.1 ms
test_async_return_large_dict_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
3.8 ms3.8 ms
test_async_return_model_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
test_sync_return_large_dict_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
4.1 ms4.1 ms
test_sync_return_model_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_sync_return_dict_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
2.1 ms2.1 ms
test_sync_return_large_model_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
4.1 ms4.1 ms
test_async_receiving_large_payload
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
11.9 ms11.9 ms
test_async_return_model_with_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_sync_receiving_validated_pydantic_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_sync_return_dict_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_sync_receiving_large_payload
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
-2%
12.1 ms12.4 ms
test_sync_return_large_model_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
-5%
55.8 ms58.8 ms
test_async_return_large_model_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
-5%
55.5 ms58.6 ms
test_sync_return_large_dict_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
-5%
52.1 ms55.1 ms
test_async_return_large_dict_without_response_model
tests/benchmarks/test_general_performance.py
CodSpeed Performance Gauge
-5%
51.9 ms54.9 ms

Commits

Click on a commit to change the comparison range
Base
master
ff6a38a
-0.54%
Attempt to use pydantic_extra_types and allow the deprecated v1 Color
d23967f
3 months ago
by Lob26
-0.05%
Update encoders.py
5c51d0b
3 months ago
by Lob26
-0.29%
Final fix so tests works nicely
cb3a8ca
3 months ago
by Lob26
-0.01%
🎨 Auto format
3c18664
3 months ago
by pre-commit-ci-lite[bot]
-0.14%
For extra-types safety
74417ce
3 months ago
by Lob26
-0.04%
🎨 Auto format
ef58846
3 months ago
by pre-commit-ci-lite[bot]
+0.06%
Fix tests, two encoders for one
a6203ca
3 months ago
by Lob26
+0.02%
🎨 Auto format
e7c7b02
3 months ago
by pre-commit-ci-lite[bot]
-0.32%
🎨 Auto format
a323877
3 months ago
by pre-commit-ci-lite[bot]
+0.01%
🎨 Auto format
900936b
3 months ago
by pre-commit-ci-lite[bot]
-0.59%
More tests for coverage
3f3f98d
3 months ago
by Lob26
-0.09%
Fix mismatch on versions
5cdeecc
3 months ago
by Lob26
+0.08%
E402 Module level import not at top of file
7d26de7
3 months ago
by Lob26
-0.12%
Deprecated Color
c78d659
3 months ago
by Lob26
+0.18%
As pydantic v1 support is dropped, we can "inline" the color encoder
d7a6788
3 months ago
by Lob26
-0.44%
Merge branch 'master' into jsonable_encoder
d81da42
3 months ago
by Lob26
+0.27%
🎨 Auto format
f4d9ef3
3 months ago
by pre-commit-ci-lite[bot]
+0.52%
Merge branch 'master' into jsonable_encoder
7c2a56d
3 months ago
by Lob26
-0.03%
Merge branch 'master' into jsonable_encoder
5179e3c
3 months ago
by Lob26
+0.16%
Merge branch 'master' into jsonable_encoder
6730f75
3 months ago
by Lob26
+0.21%
Merge branch 'master' into jsonable_encoder
86a129f
3 months ago
by Lob26
+0.04%
Merge branch 'master' into jsonable_encoder
a255041
3 months ago
by Lob26
-0.16%
Merge branch 'master' into jsonable_encoder
f666268
3 months ago
by Lob26
0%
Merge branch 'master' into jsonable_encoder
5a6403f
2 months ago
by Lob26
-0.07%
Merge remote-tracking branch 'upstream/master' into jsonable_encoder
02fb2f9
26 days ago
by Lob26
+0.07%
Test allowed
d51b7d1
26 days ago
by Lob26
0%
🎨 Auto format
313fc0f
26 days ago
by pre-commit-ci-lite[bot]
+0.3%
Merge remote-tracking branch 'upstream/master' into jsonable_encoder
2b9d804
5 days ago
by Lob26
-0.13%
Merge branch 'master' into jsonable_encoder
54d94f1
5 days ago
by Lob26
© 2026 CodSpeed Technology
Home Terms Privacy Docs