feat: add comprehensive performance benchmarks issue#21#22
Open
Sukuna0007Abhi wants to merge 1 commit intoveraison:mainfrom
Open
feat: add comprehensive performance benchmarks issue#21#22Sukuna0007Abhi wants to merge 1 commit intoveraison:mainfrom
Sukuna0007Abhi wants to merge 1 commit intoveraison:mainfrom
Conversation
- Add benchmark_test.go with 40+ performance benchmarks - Cover JSON/CBOR marshaling and unmarshaling for different data sizes - Include benchmarks for X.509 extensions, format detection, and collections - Test small (~15B), medium (~1KB), and large (~100KB) data sizes - Add CBOR tag format benchmarks showing significant performance gains - Include collection operations and type/value manipulation benchmarks - Add BENCHMARKS.md documentation with usage examples and performance insights Benchmarks reveal: - CBOR tag format is ~2x faster than CBOR record format - CBOR operations generally outperform JSON equivalents - Performance scales reasonably with data size - Memory allocations are well-controlled across all operations Addresses performance baseline requirements for comprehensive benchmarking. Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
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.
Add comprehensive performance benchmarks
Summary
This PR implements comprehensive performance benchmarks for the CMW library to establish performance baselines and enable data-driven optimization decisions.
Changes
Added
benchmark_test.gowith 40+ performance benchmarks covering:Added
BENCHMARKS.mddocumentation with:Benchmark Coverage
Key Performance Insights
Testing
Usage
Fixes #21