Avatar for the python-attrs user
python-attrs
attrs
BlogDocsChangelog

Improve performance of asdict in the common case

#1463
Comparing
eendebakpt:asdict_atomic_types
(
7257b83
) with
main
(
5d216e6
)
CodSpeed Performance Gauge
×2.6
Improvements
2
Regressions
0
Untouched
10
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

test_asdict_atomic
bench/test_benchmarks.py::test_asdict_atomic
CodSpeed Performance Gauge
×2.6
16.3 ms
6.3 ms
test_asdict_complicated
bench/test_benchmarks.py::test_asdict_complicated
CodSpeed Performance Gauge
+45%
13.8 ms
9.5 ms

Passed

test_astuple_complicated
bench/test_benchmarks.py::test_astuple_complicated
CodSpeed Performance Gauge
0%
13.1 ms
13.1 ms
test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_defaults
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_create_simple_class_make_class
bench/test_benchmarks.py::test_create_simple_class_make_class
CodSpeed Performance Gauge
0%
1 s
1 s
test_eq_equal
bench/test_benchmarks.py::test_eq_equal
CodSpeed Performance Gauge
0%
878.3 µs
878.3 µs
test_hash
bench/test_benchmarks.py::test_hash
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_create_frozen_class
bench/test_benchmarks.py::test_create_frozen_class
CodSpeed Performance Gauge
0%
1.3 s
1.3 s
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
CodSpeed Performance Gauge
0%
1.1 s
1.1 s
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
CodSpeed Performance Gauge
0%
673.7 µs
673.8 µs
test_astuple_atomic
bench/test_benchmarks.py::test_astuple_atomic
CodSpeed Performance Gauge
0%
15.7 ms
15.7 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
7 days ago
by eendebakpt
+0.01%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
4b627cb
7 days ago
by pre-commit-ci[bot]
-0.01%
fix for python3.9
3e5d59e
7 days ago
by eendebakpt
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
44b4958
7 days ago
by pre-commit-ci[bot]
0%
Merge branch 'main' into asdict_atomic_types
1cf41e5
7 days ago
by eendebakpt
0%
coverage
d1af841
7 days ago
by eendebakpt
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
6307d4e
7 days ago
by pre-commit-ci[bot]
0%
docstring
1e3e65c
7 days ago
by eendebakpt
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
d28d46d
7 days ago
by pre-commit-ci[bot]
+0.02%
add benchmark for asdict
5f67d02
7 days ago
by eendebakpt
×2.6
Merge branch 'main' into asdict_atomic_types
6eec74f
6 days ago
by hynek
-0.48%
Remove now-redundant benchmark
b870621
6 days ago
by hynek
+0.1%
change test name
7257b83
6 days ago
by eendebakpt
© 2025 CodSpeed Technology
Home Terms Privacy Docs