hyf0
sugar_path
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: optimize normalize() to avoid allocation for already-clean paths
#32
Merged
Comparing
hyf_3284290384
(
d139766
) with
main
(
ce5e297
)
CodSpeed Performance Gauge
×2.1
Improvement
8
Untouched
16
Skipped
1
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
Skipped
25 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_deep_clean
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
×2.1
9.6 µs
4.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_already_clean
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
×2
23 µs
11.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_already_clean_absolute
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+98%
12.7 µs
6.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_short_clean
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+91%
5.4 µs
2.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize_with
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+28%
13.3 µs
10.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_mixed_workload
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+26%
45.3 µs
35.9 µ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
+12%
815.8 ns
728.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
absolutize
benches/absolutize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+11%
27 µs
24.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
+7%
30.1 µs
28.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize_needs_work
benches/normalize.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+7%
30 µs
28.1 µs
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.
to_slash_absolute_paths
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+4%
2.4 µs
2.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.8 µs
3.7 µ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.4 µs
9.4 µ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.
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_lossy_absolute_paths
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.8 µs
3.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_deep_nesting
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
13 µs
13.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
to_slash_lossy
benches/to_slash.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
6.4 µs
6.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_simple
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
9.5 µs
9.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_same_path
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-3%
3 µs
3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_parent_child
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-3%
4.5 µs
4.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
relative_with_dots
benches/relative.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-7%
7.9 µs
8.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
as_path_vs_path_new
benches/as_path.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-7%
723.9 ns
782.2 ns
The benchmarks below were skipped, so their baseline results are used instead. If they were deleted in your codebase, archive them to remove them from the performance reports.
Learn more about archiving benchmarks
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
normalize
benches/normalize.rs::benches::criterion_benchmark
Skipped
30 µs
*
Commits
Click on a commit to change the comparison range
Base
main
ce5e297
×2.1
perf: optimize normalize() to avoid allocation for already-clean paths
d139766
1 month ago
by hyf0
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs