BlogDocs

feat: support arbitrary field dependents(#340)

Comparing
tlambert03:computed-fields
(
ed0a7e0
) with
main
(
6db5219
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
67
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

test_connect_time[setattr-]
tests/test_bench.py::test_connect_time[setattr-]
+2%
62.4 µs
61.1 µs
test_connect_time[setitem-]
tests/test_bench.py::test_connect_time[setitem-]
+1%
62.9 µs
62 µs
test_emit_time[partial-50]
tests/test_bench.py::test_emit_time[partial-50]
+1%
132.5 µs
130.7 µs
test_emit_time[partial_method-2]
tests/test_bench.py::test_emit_time[partial_method-2]
+1%
64.6 µs
63.8 µs
test_emit_time[partial-34]
tests/test_bench.py::test_emit_time[partial-34]
+1%
107.6 µs
106.3 µs
test_create_signal_instance
tests/test_bench.py::test_create_signal_instance
+1%
33.5 µs
33.2 µs
test_emit_time[setattr-50]
tests/test_bench.py::test_emit_time[setattr-50]
+1%
76.7 µs
76 µs
test_emit_fast
tests/test_bench.py::test_emit_fast
+1%
21.5 µs
21.3 µs
test_emit_time[setattr-18]
tests/test_bench.py::test_emit_time[setattr-18]
+1%
62.8 µs
62.3 µs
test_emit_time[function-18]
tests/test_bench.py::test_emit_time[function-18]
+1%
74.1 µs
73.5 µs
test_emit_time[real_func-2]
tests/test_bench.py::test_emit_time[real_func-2]
+1%
64.6 µs
64.1 µs
test_emit_time[partial_method-34]
tests/test_bench.py::test_emit_time[partial_method-34]
+1%
122.8 µs
121.8 µs
test_emit_time[partial_method-50]
tests/test_bench.py::test_emit_time[partial_method-50]
+1%
152.1 µs
151.1 µs
test_emit_time[setattr-2]
tests/test_bench.py::test_emit_time[setattr-2]
+1%
55.9 µs
55.5 µs
test_connect_time[function-check_types]
tests/test_bench.py::test_connect_time[function-check_types]
+1%
156.4 µs
155.4 µs
test_emit_time[lambda-50]
tests/test_bench.py::test_emit_time[lambda-50]
+1%
104.5 µs
103.8 µs
test_emit_time[partial_method-18]
tests/test_bench.py::test_emit_time[partial_method-18]
+1%
93.6 µs
93 µs
test_connect_time[print-check_types]
tests/test_bench.py::test_connect_time[print-check_types]
+1%
205.6 µs
204.4 µs
test_connect_time[setitem-check_types]
tests/test_bench.py::test_connect_time[setitem-check_types]
+1%
67.3 µs
66.9 µs
test_emit_time[setitem-2]
tests/test_bench.py::test_emit_time[setitem-2]
+1%
57.8 µs
57.5 µs
test_emit_time[method-34]
tests/test_bench.py::test_emit_time[method-34]
+1%
105.8 µs
105.2 µs
test_emit_time[setitem-50]
tests/test_bench.py::test_emit_time[setitem-50]
0%
93.9 µs
93.5 µs
test_emit_time[print-34]
tests/test_bench.py::test_emit_time[print-34]
0%
277.7 µs
276.6 µs
test_emit_time[partial-2]
tests/test_bench.py::test_emit_time[partial-2]
0%
61.2 µs
61 µs
test_connect_time[real_func-]
tests/test_bench.py::test_connect_time[real_func-]
0%
123.3 µs
122.9 µs
test_connect_time[partial-check_types]
tests/test_bench.py::test_connect_time[partial-check_types]
0%
256.1 µs
255.4 µs
test_emit_time[method-50]
tests/test_bench.py::test_emit_time[method-50]
0%
127.9 µs
127.6 µs
test_emit_time[lambda-34]
tests/test_bench.py::test_emit_time[lambda-34]
0%
88.9 µs
88.7 µs
test_emit_time[setitem-18]
tests/test_bench.py::test_emit_time[setitem-18]
0%
69.6 µs
69.5 µs
test_emit_time[setattr-34]
tests/test_bench.py::test_emit_time[setattr-34]
0%
69.4 µs
69.2 µs
test_connect_time[print-]
tests/test_bench.py::test_connect_time[print-]
0%
145 µs
144.6 µs
test_emit_time[function-50]
tests/test_bench.py::test_emit_time[function-50]
0%
104.5 µs
104.2 µs
test_dataclass_setattr[dataclass]
tests/test_bench.py::test_dataclass_setattr[dataclass]
0%
757.5 µs
755.9 µs
test_connect_time[partial_method-check_types]
tests/test_bench.py::test_connect_time[partial_method-check_types]
0%
282.5 µs
281.9 µs
test_emit_time[lambda-18]
tests/test_bench.py::test_emit_time[lambda-18]
0%
73.9 µs
73.8 µs
test_dataclass_setattr[attrs]
tests/test_bench.py::test_dataclass_setattr[attrs]
0%
776.5 µs
775.1 µs
test_emit_time[function-2]
tests/test_bench.py::test_emit_time[function-2]
0%
65.3 µs
65.2 µs
test_dataclass_setattr[msgspec]
tests/test_bench.py::test_dataclass_setattr[msgspec]
0%
774.1 µs
772.9 µs
test_connect_time[lambda-check_types]
tests/test_bench.py::test_connect_time[lambda-check_types]
0%
144.8 µs
144.6 µs
test_emit_time[lambda-2]
tests/test_bench.py::test_emit_time[lambda-2]
0%
58.7 µs
58.6 µs
test_connect_time[real_func-check_types]
tests/test_bench.py::test_connect_time[real_func-check_types]
0%
126.4 µs
126.2 µs
test_emit_time[function-34]
tests/test_bench.py::test_emit_time[function-34]
0%
88.8 µs
88.7 µs
test_emit_time[method-18]
tests/test_bench.py::test_emit_time[method-18]
0%
83.6 µs
83.5 µs
test_dataclass_group_create[msgspec]
tests/test_bench.py::test_dataclass_group_create[msgspec]
0%
549.1 µs
548.6 µs
test_dataclass_group_create[dataclass]
tests/test_bench.py::test_dataclass_group_create[dataclass]
0%
525.5 µs
525.1 µs
test_evented_creation
tests/test_bench.py::test_evented_creation
0%
1.6 ms
1.6 ms
test_emit_time[method-2]
tests/test_bench.py::test_emit_time[method-2]
0%
62 µs
62 µs
test_evented_setattr
tests/test_bench.py::test_evented_setattr
0%
27.9 µs
27.9 µs
test_emit_time[print-50]
tests/test_bench.py::test_emit_time[print-50]
0%
376.2 µs
376.2 µs
test_emit_time[setitem-34]
tests/test_bench.py::test_emit_time[setitem-34]
0%
81.3 µs
81.4 µs
test_connect_time[method-]
tests/test_bench.py::test_connect_time[method-]
0%
176.8 µs
176.9 µs
test_emit_time[print-18]
tests/test_bench.py::test_emit_time[print-18]
0%
178.3 µs
178.4 µs
test_connect_time[partial_method-]
tests/test_bench.py::test_connect_time[partial_method-]
0%
275.7 µs
276.1 µs
test_connect_time[partial-]
tests/test_bench.py::test_connect_time[partial-]
0%
242.5 µs
242.9 µs
test_connect_time[method-check_types]
tests/test_bench.py::test_connect_time[method-check_types]
0%
185.6 µs
186 µs
test_dataclass_group_create[attrs]
tests/test_bench.py::test_dataclass_group_create[attrs]
0%
542 µs
543.4 µs
test_connect_time[lambda-]
tests/test_bench.py::test_connect_time[lambda-]
0%
140.1 µs
140.7 µs
test_emit_time[real_func-18]
tests/test_bench.py::test_emit_time[real_func-18]
0%
98.4 µs
98.8 µs
test_dataclass_group_create[pydantic]
tests/test_bench.py::test_dataclass_group_create[pydantic]
0%
542.2 µs
544.8 µs
test_dataclass_setattr[pydantic]
tests/test_bench.py::test_dataclass_setattr[pydantic]
-1%
860.1 µs
865.4 µs
test_create_signal
tests/test_bench.py::test_create_signal
-1%
68.1 µs
68.5 µs
test_emit_time[print-2]
tests/test_bench.py::test_emit_time[print-2]
-1%
85.8 µs
86.6 µs
test_connect_time[setattr-check_types]
tests/test_bench.py::test_connect_time[setattr-check_types]
-1%
67.5 µs
68.2 µs
test_emit_time[real_func-34]
tests/test_bench.py::test_emit_time[real_func-34]
-1%
130.6 µs
132 µs
test_emit_time[real_func-50]
tests/test_bench.py::test_emit_time[real_func-50]
-1%
162.9 µs
164.7 µs
test_emit_time[partial-18]
tests/test_bench.py::test_emit_time[partial-18]
-1%
83.2 µs
84.3 µs
test_connect_time[function-]
tests/test_bench.py::test_connect_time[function-]
-1%
140.7 µs
142.6 µs

Commits

Click on a commit to change the comparison range
base
main
6db5219
+11%
fix build dependency
7e2984b
1 day ago
by tlambert03
0%
fix test
d5ef19f
1 day ago
by tlambert03
-10%
Merge branch 'main' into computed-fields
ed0a7e0
23 hours ago
by tlambert03
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.