Skip to content

Add go.benchFlags to extract benchmark flags from testFlags #1904

Open
@cristaloleg

Description

@cristaloleg

Is your feature request related to a problem? Please describe.
Go 1.17 provides a new flag -shuffle which changes order of the tests to a random one.
But this flags is bothersome for benchmarks. In other words "I don't care about order of benchmarks, I want the results".
Also using this flag complicates benchmark comparison (due to order, hah!).
Same problem with a -race flag, not so useful in benchmarks for most of the cases.

Describe the solution you'd like
Have go.benchFlags parameter where user can specify benchmark only flags.

Describe alternatives you've considered
Disabling -shuffle or -race flag for tests or just use terminal for benchmarks.
1st solution disable good Go test features.
2nd is just less simpler than click "run benchmark" (or so).

Additional context
Nothing to add.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions