Add BenchmarkDotNet performance benchmarking infrastructure#1111
Draft
Copilot wants to merge 8 commits into
Draft
Add BenchmarkDotNet performance benchmarking infrastructure#1111Copilot wants to merge 8 commits into
Copilot wants to merge 8 commits into
Conversation
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
…documentation Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
…on order Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add performance benchmarking with Benchmark.NET
Add BenchmarkDotNet performance benchmarking infrastructure
Jan 5, 2026
Owner
|
@copilot merge in the latest master and resolve conflicts |
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Contributor
Author
…ance-benchmarking # Conflicts: # tests/SharpCompress.Performance/packages.lock.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Performance Benchmarks Implementation - Complete ✅
Successfully integrated BenchmarkDotNet into the SharpCompress.Performance project with comprehensive benchmarking capabilities.
Recent Updates
Implemented Benchmarks
Features
✅ Memory diagnostics with
[MemoryDiagnoser]attribute✅ Baseline comparison support for tracking performance changes
✅ Test archives from existing TestArchives directory
✅ Comprehensive README with usage examples and best practices
✅ BenchmarkDotNet artifacts excluded from git
✅ All code formatted with CSharpier
✅ Proper exception handling with descriptive messages
✅ Path validation to prevent IndexOf returning -1
✅ Iteration cleanup to prevent file reuse affecting measurements
✅ Test files initialized in GlobalSetup to avoid initialization order issues
✅ Compatible with latest master branch changes
Usage Examples
Sample Output
Benchmarks provide detailed metrics including:
See
tests/SharpCompress.Performance/README.mdfor comprehensive documentation.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.