Commit b6fca3a4 authored by Florian Fischer's avatar Florian Fischer
Browse files

add simple script to find the best cps in the results

parent 66faf965
.PHONY: all clean check fotmat check-format check-pylint clean-emper clean-emper-client eval servers clients
PYTHONFILES := eval.py plot.py parse_results.py plot_tail_latency.py plot_utils.py bench/*.py
PYTHONFILES := eval.py plot.py find_best.py parse_results.py plot_tail_latency.py plot_utils.py bench/*.py
all: servers clients
......
#!/usr/bin/env python3
"""Find best in results"""
import argparse
from parse_results import collect_results, calculate_stats
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('result_dir')
parser.add_argument('-k', '--key', type=str, default='iops')
parser.add_argument('-s', '--stat', type=str, default='median')
args = parser.parse_args()
data = collect_results(args.result_dir)
stats = calculate_stats(data)
stats_per_conn = {
c: [(stats[c][args.key][args.stat], impl)
for impl, stats in stats.items()]
for c in next(iter(stats.values()))
}
for conns, conn_stats in stats_per_conn.items():
print(f'{conns}: {max(conn_stats)}')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment