Avatar for the python-attrs user
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%
Improvements
0
Regressions
0
Untouched
8
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_defaults
CodSpeed Performance Gauge
+5%
1.3 ms
1.2 ms
test_hash
bench/test_benchmarks.py::test_hash
CodSpeed Performance Gauge
+4%
1.2 ms
1.1 ms
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
CodSpeed Performance Gauge
+4%
1.3 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.5 s
1.5 s
test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
CodSpeed Performance Gauge
0%
671.6 µs
669.9 µs
test_eq_equal
bench/test_benchmarks.py::test_eq_equal
CodSpeed Performance Gauge
0%
872.7 µs
871.8 µs
test_create_frozen_class
bench/test_benchmarks.py::test_create_frozen_class
CodSpeed Performance Gauge
0%
1.8 s
1.8 s
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
CodSpeed Performance Gauge
0%
1.5 s
1.5 s

Commits

Click on a commit to change the comparison range
Base
main
0e8e82a
+2%
WIP: cached properties implementation using descriptor rather than getattr
2adaae7
5 months ago
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
a1a8bf3
5 months ago
by pre-commit-ci[bot]
Home Terms PrivacyDocs