diff --git a/Makefile b/Makefile index 9fb445e7..a1fa3930 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ BENCH_BLAZE = build/bin/bench-blaze BENCH_EIGEN = build/bin/bench-eigen BENCH_BLAST = build/bin/bench-blast BENCH_LIBXSMM = build/bin/bench-libxsmm -BENCHMARK_OPTIONS = --benchmark_repetitions=5 --benchmark_counters_tabular=true --benchmark_out_format=json --benchmark_report_aggregates_only=true +BENCHMARK_OPTIONS = --benchmark_repetitions=10 --benchmark_counters_tabular=true --benchmark_out_format=json RUN_MATLAB = matlab -nodisplay -nosplash -nodesktop -r BENCH_DATA = bench_result/data BENCH_IMAGE = bench_result/image diff --git a/bench/analysis/dgemm_performance.py b/bench/analysis/dgemm_performance.py index 2998639a..7f401e91 100644 --- a/bench/analysis/dgemm_performance.py +++ b/bench/analysis/dgemm_performance.py @@ -3,7 +3,14 @@ def filter_aggregate(benchmarks, name): - return [b for b in benchmarks if b['aggregate_name'] == name] + result = [] + for b in benchmarks: + try: + if b['aggregate_name'] == name: + result.append(b) + except KeyError: + continue + return result factor = 1e+9 # Giga diff --git a/bench/analysis/dgemm_performance_ratio.py b/bench/analysis/dgemm_performance_ratio.py index bb2ee21e..e7f9d7b6 100644 --- a/bench/analysis/dgemm_performance_ratio.py +++ b/bench/analysis/dgemm_performance_ratio.py @@ -3,8 +3,14 @@ def filter_aggregate(benchmarks, name): - return [b for b in benchmarks if b['aggregate_name'] == name] - + result = [] + for b in benchmarks: + try: + if b['aggregate_name'] == name: + result.append(b) + except KeyError: + continue + return result def load_benchmark(file_name): with open(file_name) as f: