-
Notifications
You must be signed in to change notification settings - Fork 4
Improve benchmark outputs to make zstd time/size more prominent #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds zstd sizes to Profile and JSONL examples and makes zstd CPU times visible as a stack bar chart in benchmark.html.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances benchmark outputs to make zstd compression size/time metrics more prominent across the codebase. It adds compressed size reporting to profile and JSONL examples and introduces visual improvements to the benchmark HTML output.
Key changes:
- Added zstd compression metrics to test output displays
- Enhanced benchmark HTML charts to show compression timing as stacked bar charts
- Modified chart generation to support stacked bars for better visualization of compression overhead
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/profile/pprof2stef_test.go | Added zstd compression comparison between pprof and STEF formats |
| examples/jsonl/json2stef_test.go | Added compressed size columns to JSON/Protobuf/STEF comparison output |
| docs/benchmarks.html | Updated chart IDs and configuration to use stacked bar visualization |
| benchmarks/size_test.go | Modified chart recording to use new stacked bar format |
| benchmarks/charts.go | Enhanced chart system to support multi-series stacked bars |
| benchmarks/benchmarks_test.go | Restructured benchmarks to separate compression timing and show as stacked bars |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Benchmark ResultBenchmark diff with base branchBenchmark result |
This adds zstd sizes to Profile and JSONL examples:
Also makes zstd CPU times visible as a stack bar chart in benchmark.html, for example:
