python-attrs
attrs
BlogDocsChangelog

Improve performance of attr.astuple

#1469Merged
Comparing
eendebakpt:astuple_atomic_types
(
57ee5cf
) with
main
(
6ef8d73
)
CodSpeed Performance Gauge
×2.7
Improvements
2
Untouched
10

Benchmarks

Improved

test_astuple_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
×2.7
15.7 ms5.7 ms
test_astuple_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
+49%
13.1 ms8.8 ms

Passed

test_asdict_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
+1%
9.5 ms9.4 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_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1 s1 s
test_asdict_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
6.3 ms6.3 ms

Commits

Click on a commit to change the comparison range
Base
main
6ef8d73
×2.7
Improve performance of attr.astuple
c2aa056
1 month ago
by eendebakpt
-0.04%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
eb3ced2
1 month ago
by pre-commit-ci[bot]
+0.04%
Add news fragment
57ee5cf
1 month ago
by hynek
© 2025 CodSpeed Technology
Home Terms Privacy Docs