feat: add Criterion benchmark suite for performance tracking#71
Merged
feat: add Criterion benchmark suite for performance tracking#71
Conversation
Adds a comprehensive benchmark suite using the criterion crate to track performance across parsing, serialization, format conversion, and mapping operations. Benchmarks included: - Parsing: JSON, CSV, YAML at 100/1k/10k records (with throughput) - Serialization: JSON, JSON pretty, CSV, YAML, TOML - Conversions: JSON→YAML, CSV→JSON end-to-end - Mapping: rename, filter (where), complex multi-operation pipeline - End-to-end: JSON→JSON with mapping (rename + filter) Also adds a CI workflow (.github/workflows/bench.yml) that runs benchmarks on PRs and uploads results as artifacts for regression detection. Fixes #32
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.
Adds a comprehensive benchmark suite using the
criterioncrate to track performance and detect regressions.Benchmarks
Parsing (with throughput measurement)
Serialization
Format Conversion (end-to-end)
Mapping Operations
where .active == trueacross 100 / 1k / 10k recordsEnd-to-End
CI Integration
Adds
.github/workflows/bench.ymlthat:--output-format bencherUsage
Fixes #32