Update queried metric to determine tps in system tests (#31531)

The test report is querying a metric that has been removed for being too
noisy. So, update the query to use a metric that we report once per
slot.
This commit is contained in:
steviez 2023-05-08 10:37:23 -05:00 committed by GitHub
parent 53811e6053
commit 0d9783c746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -127,22 +127,23 @@ function get_validator_confirmation_time {
function collect_performance_statistics {
execution_step "Collect performance statistics about run"
# total_transactions will be 0 when the node is leader, so exclude those
declare q_mean_tps='
SELECT ROUND(MEAN("median_sum")) as "mean_tps" FROM (
SELECT MEDIAN(sum_count) AS "median_sum" FROM (
SELECT SUM("count") AS "sum_count"
FROM "'$TESTNET_TAG'"."autogen"."bank-process_transactions"
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND count > 0
SELECT MEDIAN(sum_total_transactions) AS "median_sum" FROM (
SELECT SUM("total_transactions") AS "sum_total_transactions"
FROM "'$TESTNET_TAG'"."autogen"."replay-slot-stats"
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND total_transactions > 0
GROUP BY time(1s), host_id)
GROUP BY time(1s)
)'
declare q_max_tps='
SELECT MAX("median_sum") as "max_tps" FROM (
SELECT MEDIAN(sum_count) AS "median_sum" FROM (
SELECT SUM("count") AS "sum_count"
FROM "'$TESTNET_TAG'"."autogen"."bank-process_transactions"
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND count > 0
SELECT MEDIAN(sum_total_transactions) AS "median_sum" FROM (
SELECT SUM("total_transactions") AS "sum_total_transactions"
FROM "'$TESTNET_TAG'"."autogen"."replay-slot-stats"
WHERE time > now() - '"$TEST_DURATION_SECONDS"'s AND total_transactions > 0
GROUP BY time(1s), host_id)
GROUP BY time(1s)
)'