python-attrs
attrs
BlogDocsChangelog

Improve performance of asdict in the common case

#1463Merged
Comparing
eendebakpt:asdict_atomic_types
(
080dbc5
) with
main
(
5d216e6
)
CodSpeed Performance Gauge
×2.6
Improvements
2
Untouched
10

Benchmarks

Improved

test_asdict_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
×2.6
16.3 ms6.4 ms
test_asdict_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
+46%
13.8 ms9.5 ms

Passed

test_astuple_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
13.1 ms13.1 ms
test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
673.7 µs673.4 µs
test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
878.3 µs878 µs
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1 s1 s
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_astuple_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
15.7 ms15.7 ms
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms

Commits

Click on a commit to change the comparison range
Base
main
5d216e6
+0.33%
Improve performance of asdict in the common case
bbda9ca
4 months ago
by eendebakpt
+0.01%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
4b627cb
4 months ago
by pre-commit-ci[bot]
-0.01%
fix for python3.9
3e5d59e
4 months ago
by eendebakpt
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
44b4958
4 months ago
by pre-commit-ci[bot]
0%
Merge branch 'main' into asdict_atomic_types
1cf41e5
4 months ago
by eendebakpt
0%
coverage
d1af841
4 months ago
by eendebakpt
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
6307d4e
4 months ago
by pre-commit-ci[bot]
0%
docstring
1e3e65c
4 months ago
by eendebakpt
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
d28d46d
4 months ago
by pre-commit-ci[bot]
+0.02%
add benchmark for asdict
5f67d02
4 months ago
by eendebakpt
×2.6
Fix test docstring
8350eab
4 months ago
by hynek
-1.41%
Add news fragment
080dbc5
4 months ago
by hynek
© 2026 CodSpeed Technology
Home Terms Privacy Docs