python-attrs
attrs
BlogDocsChangelog

WIP: cached properties implementation using descriptor rather than ge…

#1357
Comparing
diabolo-dan:cached_properties_via_descriptor
(
a1a8bf3
) with
main
(
0e8e82a
)
CodSpeed Performance Gauge
+2%
Untouched
8

Benchmarks

Passed

test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
+5%
1.3 ms1.2 ms
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
+4%
1.2 ms1.1 ms
test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
+4%
1.3 ms1.2 ms
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.5 s1.5 s
test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
671.6 µs669.9 µs
test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
872.7 µs871.8 µs
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.8 s1.8 s
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.5 s1.5 s

Commits

Click on a commit to change the comparison range
Base
main
0e8e82a
+1.8%
WIP: cached properties implementation using descriptor rather than getattr
2adaae7
1 year ago
+0.02%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
a1a8bf3
1 year ago
by pre-commit-ci[bot]
© 2025 CodSpeed Technology
Home Terms Privacy Docs