Skip to content

Feat: Support JSON output to STDOUT#125

Merged
nateberkopec merged 1 commit intoevanphx:masterfrom
okuramasafumi:json-stdout
Feb 14, 2023
Merged

Feat: Support JSON output to STDOUT#125
nateberkopec merged 1 commit intoevanphx:masterfrom
okuramasafumi:json-stdout

Conversation

@okuramasafumi
Copy link
Contributor

I want to support benchmark-ips in github-action-benchmark.
https://github.com/benchmark-action/github-action-benchmark

When it can write the result to STDOUT in JSON format, it would be easy to support it.
This commits changes JSON output so that it can directly write to a given argument if it responds to write.
It also adds tests and a section about JSON in README.

I want to support `benchmark-ips` in
github-action-benchmark.
https://github.com/benchmark-action/github-action-benchmark

When it can write the result to STDOUT in JSON format, it would
be easy to support it.
This commits changes JSON output so that it can directly write
to a given argument if it responds to `write`.
It also adds tests and a section about JSON in README.
@eregon
Copy link
Contributor

eregon commented Feb 6, 2023

I think this is fine, although I would like someone else to review.

One note is becnhmarking on GitHub Actions and shared machines is probably most of the times not a good idea, because it's quite noisy. From that project's README, this seems very noisy indeed: https://benchmark-action.github.io/github-action-benchmark/dev/bench/

Copy link
Contributor

@kbrock kbrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nice.

Also, this feels like a big bug fix.
Not sure that this distinction matters, but just putting that out there.

Thank you @okuramasafumi

@okuramasafumi
Copy link
Contributor Author

@eregon Although my primary motivation is to add github-action-benchmark, enabling JSON output to STDOUT is still useful to communicate to other tools.

@nateberkopec
Copy link
Collaborator

Was busy with Puma last week, I'll get to releasing this now :)

大倉さんありがとうございます!

@nateberkopec nateberkopec merged commit 9f2bbda into evanphx:master Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants