Skip to content

Add bencher schema subcommand #649

Open

Description

@SignpostMarv

requesting a bencher CLI command with which one can dump bmf.json

currently doing this:

FROM ghcr.io/bencherdev/bencher-console:v0.5.10 AS bencher

FROM alpine AS downloads
ADD https://github.com/bencherdev/bencher/releases/download/v0.5.10/bencher-v0.5.10-linux-x86-64 /bencher
COPY --from=bencher /usr/src/bencher/dist/client/bmf.json /bmf.json
COPY sha512sum.txt sha512sum.txt
RUN sha512sum -c sha512sum.txt

FROM mcr.microsoft.com/devcontainers/base:ubuntu

COPY --from=downloads --chown=vscode:vscode /bencher /home/vscode/.local/bin/bencher
COPY --from=downloads --chown=vscode:vscode /bmf.json /app/bencher/bmf.json
RUN chmod +x /home/vscode/.local/bin/bencher

would rather just be able to bencher [some sensible command here] > ./bmf.json

reasoning being is that https://bencher.dev/bmf.json isn't versioned, so if the format changes in future one cannot do version-specific tooling.

Activity

  1. epompeii commented on Jan 27, 2026

    @epompeii
    Member

    Hey @SignpostMarv good catch!

    I'm open to a PR adding a bencher schema subcommand that just outputs the current BMF schema.
    Or a PR adding a https://bencher.dev/v0/bmf.json route on the server.

    Or both honestly sound like good ideas to me.

  2. SignpostMarv commented on Jan 27, 2026

    @SignpostMarv
    Author

    May have a look in the morning after I've put a bencher-friendly formatter in my benchmark.js fork (have one prototyped, but one should really be sleeping instead of continuing to tinker approaching 2am 😅)

    Getting the bencher integration to deploy & behave took longer than expected, taking a dev break once my github action finishes & will look at this tomorrow.

  3. SignpostMarv commented on Jan 28, 2026

    @SignpostMarv
    Author

    Have took a look at the code, rust makes me 👀

    Probably not the best option for me to be first diving into coding in rust, will have to opt out of contributing on this one 😅

  4. epompeii commented on Jan 30, 2026

    @epompeii
    Member
  5. SignpostMarv commented on Jan 30, 2026

    @SignpostMarv
    Author

    @SignpostMarv I have added a versioned BMF schema here: https://bencher.dev/v0/bmf.json

    that also works, although would leave this ticket open pending myself or someone else getting around to having the time to add bencher schema

  6. changed the title [-]low-priority feature request re: bmf.json[/-] [+]Add `bencher schema` subcommand[/+] on Jan 31, 2026
  7. epompeii commented on Nov 30, 2026

    @epompeii
    Member

    Keeping this open. Now that there is a BMF version 1 schema (https://bencher.dev/v1/bmf.json, from v0.6.19), bencher schema should also take a --bmf-version option to print the schema for a given version.

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