Skip to content

[BUG] bytes_per_second depends on the timer #970

@krzikalla

Description

@krzikalla

With

BENCHMARK(...)->Unit(kMillisecond)->Threads(12)->MeasureProcessCPUTime()->UseRealTime();
BENCHMARK(...)->Unit(kMillisecond)->Threads(12)->MeasureProcessCPUTime();

I get different bytes_per_second results:

...    Time             CPU   Iterations UserCounters...
----------------------------------------------------
... 42.6 ms          509 ms           12 bytes_per_second=26.2487G/s
... 43.4 ms          520 ms           12 bytes_per_second=2.14995G/s

The first line is reasonable. IMHO the bytes_per_second rate in the second line needs to be multiplied by 12 (I guess, the number of threads).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions