mirror of
https://github.com/google/benchmark.git
synced 2024-12-02 20:53:53 +00:00
12dc5eeafc
* Statistics: add support for percentage unit in addition to time I think, `stddev` statistic is useful, but confusing. What does it mean if `stddev` of `1ms` is reported? Is that good or bad? If the `median` is `1s`, then that means that the measurements are pretty noise-less. And what about `stddev` of `100ms` is reported? If the `median` is `1s` - awful, if the `median` is `10s` - good. And hurray, there is just the statistic that we need: https://en.wikipedia.org/wiki/Coefficient_of_variation But, naturally, that produces a value in percents, but the statistics are currently hardcoded to produce time. So this refactors thinkgs a bit, and allows a percentage unit for statistics. I'm not sure whether or not `benchmark` would be okay with adding this `RSD` statistic by default, but regales, that is a separate patch. Refs. https://github.com/google/benchmark/issues/1146 * Address review notes
22 lines
431 B
JSON
22 lines
431 B
JSON
{
|
|
"context": {
|
|
"date": "2016-08-02 17:44:46",
|
|
"num_cpus": 4,
|
|
"mhz_per_cpu": 4228,
|
|
"cpu_scaling_enabled": false,
|
|
"library_build_type": "release"
|
|
},
|
|
"benchmarks": [
|
|
{
|
|
"name": "whocares",
|
|
"run_type": "aggregate",
|
|
"aggregate_name": "zz",
|
|
"aggregate_unit": "percentage",
|
|
"iterations": 1000,
|
|
"real_time": 0.01,
|
|
"cpu_time": 0.10,
|
|
"time_unit": "ns"
|
|
}
|
|
]
|
|
}
|