This commit is contained in:
Alexander Kuzmenkov 2020-06-16 11:21:15 +03:00
parent 857582245e
commit cd769e5ebf
2 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,7 @@ function build_log_column_definitions
{
# FIXME This loop builds column definitons from TSVWithNamesAndTypes in an
# absolutely atrocious way. This should be done by the file() function itself.
for x in {right,left}-{addresses,{query,query-thread,trace,metric}-log}.tsv
for x in {right,left}-{addresses,{query,query-thread,trace,{async-,}metric}-log}.tsv
do
paste -d' ' \
<(sed -n '1{s/\t/\n/g;p;q}' "$x" | sed 's/\(^.*$\)/"\1"/') \

View File

@ -325,8 +325,8 @@ if args.report == 'main':
def print_benchmark_results():
left_json = json.load(open('benchmark/website-left.json'));
right_json = json.load(open('benchmark/website-right.json'));
left_qps = left_json["statistics"]["QPS"]
right_qps = right_json["statistics"]["QPS"]
left_qps = next(iter(left_json.values()))["statistics"]["QPS"]
right_qps = next(iter(right_json.values()))["statistics"]["QPS"]
relative_diff = (right_qps - left_qps) / left_qps;
times_diff = max(right_qps, left_qps) / max(0.01, min(right_qps, left_qps))
print(tableStart('Concurrent benchmarks'))