astral-sh
ruff
BlogDocsChangelog

[ty] WIP: accelerate fixed-point convergence of recursively defined literal types

#21683
Comparing
mtshiba:faster-literal-type-convergence
(
a515490
) with
main
(
ecab623
)
CodSpeed Performance Gauge
-10%
Regressions
1
Untouched
21
Skipped
30

Benchmarks

Skipped (30)

Failed

ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Regression
CodSpeed Performance Gauge
-10%
76.4 ms84.8 ms

Passed

large[sympy]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+2%
56.1 s54.8 s
large[pydantic]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+2%
204.1 s200.7 s
multithreaded[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+1%
1.6 s1.5 s
small[tanjun]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+1%
2.8 s2.8 s
medium[colour-science]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+1%
89.1 s88.6 s
medium[static-frame]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+1%
19.4 s19.3 s
small[altair]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
+1%
5.3 s5.3 s
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
CodSpeed Performance Gauge
0%
6.8 ms6.8 ms
small[freqtrade]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
0%
8.1 s8 s
medium[pandas]
crates/ruff_benchmark/benches/ty_walltime.rs
CodSpeed Performance Gauge
0%
67.3 s67.1 s
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
CodSpeed Performance Gauge
0%
124.7 ms125 ms
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
CodSpeed Performance Gauge
0%
440.4 ms441.7 ms
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
CodSpeed Performance Gauge
0%
70.6 ms70.8 ms
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
CodSpeed Performance Gauge
0%
66.9 ms67.2 ms
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
CodSpeed Performance Gauge
-1%
134.1 ms134.8 ms
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
CodSpeed Performance Gauge
-1%
65.3 ms65.7 ms
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
CodSpeed Performance Gauge
-1%
66.8 ms67.3 ms
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
CodSpeed Performance Gauge
-1%
66.7 ms67.1 ms
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
CodSpeed Performance Gauge
-1%
1.4 s1.4 s
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
CodSpeed Performance Gauge
-1%
249.9 ms252.6 ms
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
CodSpeed Performance Gauge
-2%
1.1 s1.1 s

Commits

Click on a commit to change the comparison range
Base
main
ecab623
-21.17%
[ty] accelerate fixed-point convergence of recursively-defined literal types
94e3b20
12 hours ago
by mtshiba
+11.13%
decrease `MAX_NON_RECURSIVE_UNION_LITERALS` from 512 to 256
9383b15
12 hours ago
by mtshiba
+9.98%
set `MAX_NON_RECURSIVE_UNION_LITERALS` back to 190 and see the performance diff
961c578
11 hours ago
by mtshiba
-9.85%
Revert "set `MAX_NON_RECURSIVE_UNION_LITERALS` back to 190 and see the performance diff" This reverts commit 961c5784308f70873b4f80a77bfe4fb5cfe9eb4b.
a515490
4 hours ago
by mtshiba
© 2025 CodSpeed Technology
Home Terms Privacy Docs