Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize benchmarks into suites #204

Merged
merged 6 commits into from
Oct 12, 2022
Merged

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Oct 10, 2022

This change closes #202 by adding a way to group benchmarks into *.suite files. This incorporates @jameysharp's comments, e.g., to calculate the benchmark path relative to the suite path and to detect suite files based on their .suite extension.

Though more suites could be added in the future, the result of this is that suite files can be built (see benchmarks/shootout.suite, e.g.) and then run like:

$ sightglass-cli benchmark benchmarks/shootout.suite -e ...

This change closes bytecodealliance#202 by adding a way to group benchmarks into
`*.suite` files. This incorporates @jameysharp's comments, e.g., to
calculate the benchmark path relative to the suite path and to detect
suite files based on their `.suite` extension.

Though more suites could be added in the future, the result of this is
that suite files can be built (see `benchmarks/shootout.suite`, e.g.)
and then run like:

```console
$ sightglass-cli benchmark benchmarks/shootout.suite -e ...
```
crates/cli/src/benchmark.rs Outdated Show resolved Hide resolved
@abrown abrown marked this pull request as ready for review October 11, 2022 02:28
@abrown abrown requested a review from fitzgen October 11, 2022 23:15
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

LGTM with comments addressed. Thanks for pushing this through!

crates/cli/src/benchmark.rs Outdated Show resolved Hide resolved
crates/cli/src/suite.rs Outdated Show resolved Hide resolved
crates/cli/src/suite.rs Outdated Show resolved Hide resolved
crates/cli/src/suite.rs Outdated Show resolved Hide resolved
crates/cli/src/suite.rs Show resolved Hide resolved
@abrown abrown merged commit 1ab26cd into bytecodealliance:main Oct 12, 2022
@abrown abrown deleted the suites branch October 12, 2022 18:43
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.

Organize benchmarks into suites
2 participants