Skip to content

Add Benchmark::ThreadRange() version with increment instead of multiply #282

Description

@hydroo

Hi,

for my work I want to use a range of threads.
So far the incrementing strategy seems to be limited to just multiplying with a factor.
I.e. you can only use thread counts like 1, 2, 4, 8, 16 or 1, 3, 9, 27.

So I made this small patch.
https://github.com/hydroo/google-benchmark/commit/345d2bac3c132e523b7a7a94160d4dba13c23ead
https://github.com/hydroo/google-benchmark/commit/11aeb3198c4bb8436e9e8892071832ba40cf1546

Should I create a pull request?

Best regards,
Ronny

P.S.: Is ThreadRange() not documented? I only came across it while reading the source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions