Skip to content

ci(bench): render benchmark charts vertically stacked (full width) as the generated default #54

Closed

Description

@zackees

Summary

Make the benchmark charts render vertically stacked (one large chart per OS, full width) everywhere they are presented — not small side-by-side thumbnails.

Context

The README <!-- BENCHMARK:BEGIN --> … <!-- BENCHMARK:END --> block was just changed (PR #51) from a 3-column <table> of small thumbnails to three full-width, vertically stacked <img> blocks, so each per-OS chart is large and legible. That change is currently hand-edited static markup.

The generated benchmark surfaces don't follow the same layout:

  • The BENCHMARK block's BEGIN/END markers imply it should be workflow-generated, but nothing writes into them today, so the vertical layout will drift if the block is ever regenerated.
  • The per-target index.html pages (ci/benchmark_stats.py) render one target each; there is no combined view, and no shared "stack the OSes vertically" rule.

Proposal

  • Make vertical stacking the generated default: when the benchmark-stats.yml aggregate job writes the README BENCHMARK block (see the related verbose-stats issue), emit the three OS charts stacked vertically at full width, so the layout is produced by the pipeline rather than maintained by hand.
  • Apply the same vertical-stack layout to any combined/aggregate benchmark page (e.g. an index that shows all three OSes) so charts are large and stacked, consistent with the README.
  • Keep per-OS labels (x86_64-linux, x86_64-pc-windows-msvc, aarch64-apple-darwin) above each chart and preserve the links to each target's benchmark-stats directory.

Acceptance criteria

  • The benchmark charts are presented vertically stacked, full width, one per OS, in the README benchmark block.
  • The layout is produced by the benchmark pipeline (the BEGIN/END block is workflow-written), not hand-maintained, so regeneration preserves vertical stacking.
  • Any combined/aggregate benchmark page uses the same vertical-stack layout.
  • A ci/tests check asserts the generated block/page stacks the three OS charts vertically (e.g. three full-width image blocks, no multi-column table).

Decisions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions