Skip to content

Support gungraun json output #638

Closed
Closed

Description

@Xenira

I initially tried uploading the json format, as I did not expect the plain console output to be parsed.

I think parsing the json has some advantages here:

  • Its meant for machine parsing. I would not expect the human readable output to be stable
  • Its easier to parse
  • The benchmark name does not depend on the truncated name in the output. (id and function_name / module_path are available)
  • More metrics available

Activity

  1. epompeii commented on Dec 16, 2025

    @epompeii
    Member

    @Xenira thank you for using Bencher, and I'm sorry things are not quite working as you expected.

    I agree that parsing the JSON output definitely has some advantages. The benchmark harness adapters are "trie shaped", so it would be possible to add another layer below the current rust_gungraun adapter: a text parser (rust_gungraun_text) and a JSON parser (rust_gungraun_json). Then rust_gungraun could be updated to parse either.

    This isn't a high priority for me right now, as the expected usage for the rust_gungraun adapter is well documented.
    With that said, I would be open to a PR for adding the Gungraun JSON parser if you're up for it.

  2. Xenira commented on Dec 16, 2025

    @Xenira
    ContributorAuthor

    Sure, I can give it a try

  3. Xenira commented on Dec 16, 2025

    @Xenira
    ContributorAuthor

    @epompeii I have created a rough draft. Is this what you had in mind? If so ill do some polishing, tests and documentation.

  4. epompeii commented on Dec 17, 2025

    @epompeii
    Member

    @Xenira looks great! That is what I had in mind.

    If possible could you please break this out into four PRs:

    1. Adding the new adapters and tests (feat(gungraun): add support for json format #639)
    2. Adding the new adapters to the API server
    3. Adding the new adapters to the CLI
    4. Adding the documentation
  5. gamma0987 commented on Jun 18, 2026

    @gamma0987
    Contributor

    @epompeii I saw that #639 was closed. Was this due to inactivity? If you're still interested in parsing the gungraun json output, I would give it a try, although it may take a while.

  6. epompeii commented on Jun 18, 2026

    @epompeii
    Member

    Was this due to inactivity?

    @gamma0987 yes, it was. If you're interested in picking this up, then go for it!

  7. added a commit that references this issue on Aug 15, 2026
    a5cf93a
  8. epompeii commented on Aug 22, 2026

    @epompeii
    Member
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions