mirror of
https://github.com/google/benchmark.git
synced 2025-03-23 15:40:07 +08:00
This patch adds the compare_bench.py utility which can be used to compare the result of benchmarks. The program is invoked like: $ compare_bench.py <old-benchmark> <new-benchmark> [benchmark options]... Where <old-benchmark> and <new-benchmark> either specify a benchmark executable file, or a JSON output file. The type of the input file is automatically detected. If a benchmark executable is specified then the benchmark is run to obtain the results. Otherwise the results are simply loaded from the output file.
46 lines
897 B
JSON
46 lines
897 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": "BM_SameTimes",
|
|
"iterations": 1000,
|
|
"real_time": 10,
|
|
"cpu_time": 10,
|
|
"time_unit": "ns"
|
|
},
|
|
{
|
|
"name": "BM_2xFaster",
|
|
"iterations": 1000,
|
|
"real_time": 50,
|
|
"cpu_time": 50,
|
|
"time_unit": "ns"
|
|
},
|
|
{
|
|
"name": "BM_2xSlower",
|
|
"iterations": 1000,
|
|
"real_time": 50,
|
|
"cpu_time": 50,
|
|
"time_unit": "ns"
|
|
},
|
|
{
|
|
"name": "BM_10PercentFaster",
|
|
"iterations": 1000,
|
|
"real_time": 100,
|
|
"cpu_time": 100,
|
|
"time_unit": "ns"
|
|
},
|
|
{
|
|
"name": "BM_10PercentSlower",
|
|
"iterations": 1000,
|
|
"real_time": 100,
|
|
"cpu_time": 100,
|
|
"time_unit": "ns"
|
|
}
|
|
]
|
|
} |