Update compare.sh

This commit is contained in:
Alexander Kuzmenkov 2021-03-18 17:59:49 +03:00 committed by GitHub
parent 065faf1318
commit f2ac17cfba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -758,7 +758,7 @@ create view test_times_view as
total_client_time, total_client_time,
queries, queries,
query_max, query_max,
real / queries avg_real_per_query, real / if(queries > 0, queries, 1) avg_real_per_query,
query_min, query_min,
runs runs
from test_time from test_time
@ -779,7 +779,7 @@ create view test_times_view_total as
sum(total_client_time), sum(total_client_time),
sum(queries), sum(queries),
max(query_max), max(query_max),
sum(real) / if(sum(queries), sum(queries), 1) avg_real_per_query, sum(real) / if(sum(queries) > 0, sum(queries), 1) avg_real_per_query,
min(query_min), min(query_min),
-- Totaling the number of runs doesn't make sense, but use the max so -- Totaling the number of runs doesn't make sense, but use the max so
-- that the reporting script doesn't complain about queries being too -- that the reporting script doesn't complain about queries being too