[FEAT] Microbenchmark add visualization#620
Open
Micky774 wants to merge 1 commit into
Open
Conversation
ipanfilo
reviewed
Jun 9, 2026
ipanfilo
left a comment
Collaborator
There was a problem hiding this comment.
There are other PRs that add more scripts to microbenchmarks. So consider make this dir more structured: move visualization to subdir
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.
Description
Introduces both static and interactive plotting visualization for microbenchmark results, including per-sample results.
Fixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
New —
benchmarks/microbenchmarks/viz_data.py— shared data layer: auto-detects the samples (--csv-samples) vs aggregate (--csv) schemas and normalizes both to one tidy frame; dtype shortening, label→bench/pass split, percentile trim, per-group stats.visualize.py— Plotly figure builders + CLI emitting self-contained interactive HTML (no server). Kinds:distribution(box + raw points),scaling(median vsMwith spread band),bars(median throughput, IQR error bars),comparison(baseline-vs-candidate speedup bars),report(all).--cdnfor a smaller file.dashboard.py— live Panel explorer (mirrors the JAXpanel_app.py): selectors for plot/metric/x/hue/facet, percentile-trim slider, per-attribute filters; reusesvisualize.pybuilders.requirements-viz.txt—pandas,plotly,panel.Updated
README.md— "Visualizing results" section (CLI +panel serveusage, supported benchmarks).Notes
B) trigger a[note]to split via--facet/--color/--pass.cand/basefor throughput,base/candfor time; >1 = candidate faster).utils.py.Checklist: