Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

[`perflint`] Extend `PERF102` to comprehensions and generators

#23473Merged
Comparing
anishgirianish:extend-perf102-to-comprehensions
(
f126e82
) with
main
(
7e477c2
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
26

Benchmarks

26 total
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
81.3 s*
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.8 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
4.9 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
111.5 s*
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
30.4 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
67.1 s*
multithreaded
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
1.3 s*
freqtrade
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
9.3 s*
pydantic
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
6.2 s*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
217.6 ms*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
1.3 s*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
477.9 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
1.2 s*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
76.7 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
80.4 ms*
ty_micro[very_large_tuple]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_very_large_tuple
Skipped
71.9 ms*
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
70.6 ms*
ty_micro[many_enum_members_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members_2
Skipped
178.4 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
68.2 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
150.9 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
131.9 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
70.6 ms*
ty_micro[large_isinstance_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_isinstance_narrowing
Skipped
143.7 ms*
ty_micro[large_union_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_union_narrowing
Skipped
496.1 ms*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
70.6 ms*

Commits

Click on a commit to change the comparison range
Base
main
7e477c2
-0.27%
[perflint] Extend PERF102 to comprehensions and generators
3d0c485
5 months ago
by anishgirianish
+0.37%
[perflint] address review feeback and refactor
ff09812
5 months ago
by anishgirianish
+0.04%
[perflint] fix formatting
75cabbf
5 months ago
by anishgirianish
+0.01%
[perflint] cleanups
67ac83d
5 months ago
by anishgirianish
0%
Update crates/ruff_linter/src/checkers/ast/analyze/deferred_comprehensions.rs
f126e82
5 months ago
by ntBre
© 2026 CodSpeed Technology
Home Terms Privacy Docs