Avatar for the UnknownPlatypus user
UnknownPlatypus
djangofmt
BlogDocsChangelog

perf: hoist Settings, remove dead derive, avoid clone on error path

#237Merged
Comparing
fix/self-improve-p1
(
269aa98
) with
main
(
1c1c856
)
CodSpeed Performance Gauge
0%
Untouched
28

Benchmarks

28 total
format_templates[jinja_large/comparison_table_integrated.html (1740 lines, 130150 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
23.3 ms23.2 ms
check_templates[form_heavy/login.html (76 lines, 3118 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
110.4 µs110.3 µs
check_templates[small/404.html (10 lines, 284 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
23.9 µs23.9 µs
format_templates[tag_dense/change_form.html (84 lines, 3374 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
530.6 µs530.1 µs
format_templates[large/strip_tags1.html (1301 lines, 109394 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
22.8 ms22.8 ms
parse_templates[form_heavy/login.html (76 lines, 3118 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
100.3 µs100.3 µs
parse_templates[large/strip_tags1.html (1301 lines, 109394 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
check_templates[large/strip_tags1.html (1301 lines, 109394 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms
build_summary_mixed[100]
crates/djangofmt_benchmark/benches/summary.rs
CodSpeed Performance Gauge
0%
7.1 µs7.1 µs
build_summary_mixed[10000]
crates/djangofmt_benchmark/benches/summary.rs
CodSpeed Performance Gauge
0%
41.4 µs41.4 µs
build_summary_mixed[1000]
crates/djangofmt_benchmark/benches/summary.rs
CodSpeed Performance Gauge
0%
10.4 µs10.4 µs
parse_templates[jinja_large/comparison_table_integrated.html (1740 lines, 130150 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
format_templates[external_format/technical_500.html (491 lines, 17919 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
5 ms5 ms
check_templates[jinja_large/comparison_table_integrated.html (1740 lines, 130150 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
4.1 ms4.1 ms
format_templates[deeply_nested/project_invitation.html (349 lines, 52304 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
79.1 ms79.1 ms
format_templates[attr_dense/slim_header.html (140 lines, 7044 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
511.5 µs511.5 µs
check_templates[deeply_nested/project_invitation.html (349 lines, 52304 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
958.8 µs958.9 µs
parse_templates[deeply_nested/project_invitation.html (349 lines, 52304 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
892.3 µs892.4 µs
check_templates[external_format/technical_500.html (491 lines, 17919 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
552.5 µs552.6 µs
parse_templates[external_format/technical_500.html (491 lines, 17919 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
486.8 µs486.9 µs
check_templates[tag_dense/change_form.html (84 lines, 3374 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
143.9 µs144 µs
parse_templates[attr_dense/slim_header.html (140 lines, 7044 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
152 µs152 µs
check_templates[attr_dense/slim_header.html (140 lines, 7044 bytes)]
crates/djangofmt_benchmark/benches/linter.rs
CodSpeed Performance Gauge
0%
164.1 µs164.2 µs
parse_templates[tag_dense/change_form.html (84 lines, 3374 bytes)]
crates/djangofmt_benchmark/benches/parser.rs
CodSpeed Performance Gauge
0%
128 µs128.1 µs
format_templates[small/404.html (10 lines, 284 bytes)]
crates/djangofmt_benchmark/benches/formatter.rs
CodSpeed Performance Gauge
0%
57.9 µs58 µs

Commits

Click on a commit to change the comparison range
Base
main
1c1c856
-0.03%
perf: hoist Settings::default(), remove dead Hash derive, avoid clone on error path
269aa98
8 days ago
by UnknownPlatypus
© 2026 CodSpeed Technology
Home Terms Privacy Docs