hyf0
sugar_path
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: optimize `absolutize` to avoid allocation for already-absolute paths
#34
Merged
Comparing
hyf_32849023842
(
26e5a91
) with
main
(
5585dd3
)
CodSpeed Performance Gauge
+48%
Improvement
4
Untouched
25
Skipped
1
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
Improvement
Untouched
Skipped
30 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize_with_already_clean_absolute
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+48%
10.4 µs
7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize_with
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+48%
10.4 µs
7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+14%
24.3 µs
21.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize_already_clean_absolute
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+13%
24 µs
21.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_deep_nesting
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+4%
757.5 ns
728.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_mixed_separators
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+4%
793.9 ns
764.7 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_deep_clean
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
4.6 µs
4.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_vs_to_slash_lossy
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
9.5 µs
9.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_mixed_workload
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
35.9 µs
35.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_short_clean
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.8 µs
2.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
as_path_string
benches/as_path.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
683.9 ns
683.9 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_absolute_paths
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.4 µs
2.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_already_clean
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.3 µs
11.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
as_path_chaining
benches/as_path.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
28.2 µs
28.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
as_path_str
benches/as_path.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
537.5 ns
537.5 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_needs_work
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
28.2 µs
28.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.8 µs
3.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_with_dots
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
8.5 µs
8.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_deep_nesting
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
13.1 µs
13.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_simple
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
9.6 µs
9.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_lossy
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
6.5 µs
6.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize_dirty_absolute
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
12.7 µs
12.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_parent_child
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
4.6 µs
4.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize_relative_paths
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
15 µs
15.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_lossy_absolute_paths
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.8 µs
3.8 µs
1
2
Commits
Click on a commit to change the comparison range
Base
main
5585dd3
+48.14%
perf: optimize `absolutize` to avoid allocation for already-absolute paths
a892200
1 month ago
by hyf0
0%
fix: Windows CI and cleanup
26e5a91
1 month ago
by hyf0
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs