astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
[parser] Use `allocate_tokens_vec` in `from_source`
#25335
Closed
Comparing
yoshi-taka:use-allocate-tokens-vec
(
049e49f
) with
main
(
0df5488
)
CodSpeed Performance Gauge
-5%
Improvement
4
Regression
5
Untouched
114
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Improvement
Untouched
123 total
Uses the
Memory instrument
to collect Memory usage metrics.
linter/all-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules
CodSpeed Performance Gauge
-18%
648.7 KB
793.7 KB
Uses the
Memory instrument
to collect Memory usage metrics.
linter/all-with-preview-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
CodSpeed Performance Gauge
-18%
667.1 KB
812.1 KB
Uses the
Memory instrument
to collect Memory usage metrics.
linter/default-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
CodSpeed Performance Gauge
-16%
348.7 KB
415.1 KB
Uses the
Memory instrument
to collect Memory usage metrics.
parser[numpy/globals.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
-11%
19.7 KB
22.1 KB
Uses the
Memory instrument
to collect Memory usage metrics.
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
-6%
58.7 KB
62.2 KB
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+10%
706.5 µs
640.6 µs
Uses the
Memory instrument
to collect Memory usage metrics.
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+9%
200.6 KB
183.3 KB
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+6%
3.6 ms
3.4 ms
Uses the
Memory instrument
to collect Memory usage metrics.
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+5%
912.2 KB
870.2 KB
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parser[numpy/globals.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+3%
89.6 µs
87 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
linter/default-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
CodSpeed Performance Gauge
+2%
4.3 ms
4.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
CodSpeed Performance Gauge
+1%
71.5 ms
70.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
CodSpeed Performance Gauge
+1%
77.7 ms
76.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[gradual_vararg_call]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_gradual_vararg_call
CodSpeed Performance Gauge
+1%
71.6 ms
70.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
CodSpeed Performance Gauge
+1%
63.1 ms
62.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
CodSpeed Performance Gauge
+1%
248.9 µs
245.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
CodSpeed Performance Gauge
+1%
81.8 ms
80.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[vararg_parameter_type_accumulation]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_vararg_parameter_type_accumulation
CodSpeed Performance Gauge
+1%
61 ms
60.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
CodSpeed Performance Gauge
+1%
70.7 ms
69.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
CodSpeed Performance Gauge
+1%
71 ms
70.2 ms
Uses the
Memory instrument
to collect Memory usage metrics.
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
CodSpeed Performance Gauge
+1%
165.6 KB
163.9 KB
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[very_large_tuple]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_very_large_tuple
CodSpeed Performance Gauge
+1%
72.9 ms
72.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
linter/all-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules
CodSpeed Performance Gauge
+1%
761.2 µs
754.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[literal_match_fallthrough]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_literal_match_fallthrough
CodSpeed Performance Gauge
+1%
76.9 ms
76.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ty_micro[many_enum_members_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members_2
CodSpeed Performance Gauge
+1%
92.4 ms
91.6 ms
1
2
3
4
5
Commits
Click on a commit to change the comparison range
Base
main
0df5488
-4.93%
[parser] Use `allocate_tokens_vec` in `from_source`
049e49f
2 hours ago
by yoshi-taka
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs