Avatar for the AvalancheHQ user
AvalancheHQ
anyhow
BlogDocsChangelog

perf: replace chain().last() with direct loop in root_cause()

#80Closed
Comparing
perf/root-cause-direct-loop
(
ab49bac
) with
master
(
474425b
)
CodSpeed Performance Gauge
0%
Untouched
22

Benchmarks

22 total
create_anyhow_macro
benches/error_creation.rs
CodSpeed Performance Gauge
+9%
1.1 µs1 µs
create_from_string
benches/error_creation.rs
CodSpeed Performance Gauge
+9%
1.1 µs1 µs
create_error_chain
benches/error_creation.rs
CodSpeed Performance Gauge
+4%
2.4 µs2.3 µs
downcast_value_success
benches/error_downcast.rs
CodSpeed Performance Gauge
+1%
2.5 µs2.5 µs
multiple_context_layers
benches/error_context.rs
CodSpeed Performance Gauge
+1%
3.5 µs3.4 µs
iterate_error_chain
benches/error_downcast.rs
CodSpeed Performance Gauge
+1%
3.5 µs3.5 µs
propagate_with_question_mark
benches/error_creation.rs
CodSpeed Performance Gauge
0%
6.1 µs6.1 µs
downcast_ref_success
benches/error_downcast.rs
CodSpeed Performance Gauge
0%
2.6 µs2.6 µs
downcast_mut_success
benches/error_downcast.rs
CodSpeed Performance Gauge
0%
2.6 µs2.6 µs
downcast_ref_failure
benches/error_downcast.rs
CodSpeed Performance Gauge
0%
2.6 µs2.6 µs
check_is_type
benches/error_downcast.rs
CodSpeed Performance Gauge
0%
2.6 µs2.6 µs
access_root_cause
benches/error_downcast.rs
CodSpeed Performance Gauge
0%
3.3 µs3.3 µs
downcast_through_context
benches/error_downcast.rs
CodSpeed Performance Gauge
0%
9.6 µs9.6 µs
create_with_format
benches/error_creation.rs
CodSpeed Performance Gauge
-1%
2.4 µs2.5 µs
with_context_expensive_string
benches/error_context.rs
CodSpeed Performance Gauge
-1%
9.2 µs9.2 µs
direct_anyhow_error
benches/error_context.rs
CodSpeed Performance Gauge
-1%
3.3 µs3.3 µs
context_static_str
benches/error_context.rs
CodSpeed Performance Gauge
-2%
1.4 µs1.5 µs
context_vs_anyhow
benches/error_context.rs
CodSpeed Performance Gauge
-2%
1.4 µs1.5 µs
context_string
benches/error_context.rs
CodSpeed Performance Gauge
-3%
1.6 µs1.7 µs
create_from_io_error
benches/error_creation.rs
CodSpeed Performance Gauge
-4%
1.4 µs1.5 µs
create_from_std_error
benches/error_creation.rs
CodSpeed Performance Gauge
-6%
1.4 µs1.5 µs
with_context_closure
benches/error_context.rs
CodSpeed Performance Gauge
-8%
2.3 µs2.5 µs

Commits

Click on a commit to change the comparison range
Base
master
474425b
-0.16%
perf: replace chain().last() with direct loop in root_cause()
ab49bac
1 month ago
by fargito
© 2026 CodSpeed Technology
Home Terms Privacy Docs