python-attrs
attrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Replace cached_property on slotted classes with a new descriptor instead of writing `__getattr__`
#1488
Comparing
DavidCEllis:descriptor-cached-property
(
ea11e00
) with
main
(
5eb8701
)
CodSpeed Performance Gauge
0%
Untouched
12
No successful run was found on
main
(
c0111e6
) during the generation of this report, so
5eb8701
was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
Benchmarks
Passed
test_astuple_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
8.8 ms
8.7 ms
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1 s
1 s
test_asdict_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
6.3 ms
6.3 ms
test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
884 µs
884.4 µs
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 s
1.3 s
test_asdict_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
9.4 ms
9.4 ms
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 s
1.1 s
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
676.3 µs
676.9 µs
test_astuple_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
5.7 ms
5.7 ms
Commits
Click on a commit to change the comparison range
Base
main
5eb8701
-0.04%
discrepancy
ea11e00
2 days ago
by DavidCEllis
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs