google/benchmark

[FR] human readable name of benchmark

开放

#1,006 创建于 2020年7月21日

 (0 条评论) (4 个反应) (0 位负责人)C++ (1,539 个派生)batch import
enhancementgood first issuehelp wanted

仓库指标

星标
 (7,968 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

https://github.com/google/benchmark#running-a-subset-of-benchmarks As shown in the readme.md, https://github.com/google/benchmark/blame/master/README.md#L424

The benchmark name contains the state.range values as human readable format. (eg. 32k) But the current code does not provide any switches or automatic way to format these numbers to human readable format.

Benchmark              Time           CPU Iterations
----------------------------------------------------
BM_memcpy/32          11 ns         11 ns   79545455
BM_memcpy/32k       2181 ns       2185 ns     324074

Describe the solution you'd like Provide a function to enable human readable names for benchmark names. for powers of 2 and powers of 10.

贡献者指南