google / google/benchmark

JSON files report both CPU time and real time

Open
#772 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
10.4k
Forks
1.8k
Avg merge
2d 4h
Merged PRs (30d)
8

Description

Each benchmark has a preference for real time or CPU time, depending on what's being tested, but gbenchmark always stores both values in JSON output files. This means it's not possible to programmatically determine, when reading a JSON file, whether CPU time or real time is relevant in a particular benchmark.

It seems that when the benchmark declares a preference for real time, I could parse the benchmark name for the string `/real_time`. But that seems hackish...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.