perf: add benchmark suites and CI performance testing#84
Merged
Conversation
Move parsing (parse_logfmt, extract_json_field) and text_wrap (wrap_spans, wrap_plain, wrap_content) into standalone modules so they can be used by both the binary and the library crate. Move filter/orchestrator to filter_orchestrator (binary-only) to unblock exposing the filter module through lib.rs for benchmarks.
Add two benchmark suites for regression detection: - render: 11 scenarios covering builtin/custom/regex presets with wrap - filter: 14 scenarios covering string/regex/query/indexed filter paths Both generate realistic mixed-format log files (JSON/logfmt/plain), run multiple trials, and report mean/p50/p95/stddev/throughput. Support --size, --trials, and --json CLI flags. Add CI benchmark job running on 10MB files to catch regressions.
# Conflicts: # src/lib.rs
Fix CI formatting check failures across benchmark and source files.
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.
Summary
Add comprehensive performance benchmarks for rendering and filtering to detect regressions early. Includes CI integration that runs on every PR.
Changes
parsingandtext_wrapinto shared modules sofilterandrenderercan be exposed throughlib.rsfor benchmark accessfilter/orchestratortofilter_orchestrator(binary-only) to unblock lib.rs exportsPerformancejob running both benchmarks on 10MB files with JSON output and artifact uploadTesting