chore: add benchmarks for absolutize on clean absolute, dirty absolute, and relative paths#33
chore: add benchmarks for absolutize on clean absolute, dirty absolute, and relative paths#33
Conversation
…e, and relative paths
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive benchmarks for the absolutize function to measure performance across different path types: clean absolute paths (expected zero-allocation fast path), relative paths (always allocates), and dirty absolute paths requiring normalization (always allocates).
Changes:
- Added two new fixture arrays (
RELATIVE_CLEANandDIRTY_ABSOLUTE) to support targeted benchmarking scenarios - Extended benchmark suite with five new benchmark functions covering
absolutizeandabsolutize_withmethods across different path types
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| benches/fixtures.rs | Added RELATIVE_CLEAN and DIRTY_ABSOLUTE fixture arrays for benchmarking different path normalization scenarios |
| benches/absolutize.rs | Added benchmark functions for clean absolute, relative, and dirty absolute paths to measure performance characteristics |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.