Skip to content

Commit 542ebc2

Browse files
committed
fix: apply review comments
1 parent fded613 commit 542ebc2

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

mithril-test-lab/benchmark/aggregator-prover/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ Which will output these type of results:
3535
Using the default OUT_FILE: benchmark.csv
3636

3737
Run aggregator prover benchmark with:
38-
>> Aggregator endpoint: [https://aggregator.testing-mainnet.api.mithril.network/aggregator]
39-
>> Transactions file: [transactions-mainnet.txt]
38+
>> Aggregator endpoint: https://aggregator.testing-mainnet.api.mithril.network/aggregator
39+
>> Aggregator route: /proof/cardano-transaction
40+
>> Transactions file: transactions-mainnet.txt
4041
>> Transactions available: [100]
4142
>> Transactions per request range: [1 2 3]
4243
>> AB concurrency range: [50 100]
4344
>> AB total requests per run: [1000]
44-
>> AB total runs: [6]
45-
>> Output file: [benchmark.csv]
45+
>> AB total runs: 6
46+
>> Output file: benchmark.csv
4647

4748
>> [#1/6] Running stress test with 1000 requests with 1 transactions per request and 50 concurrency
4849
Completed 100 requests

mithril-test-lab/benchmark/aggregator-prover/benchmark-aggregator-prover.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if [ -v DEBUG ]; then
77
set -x
88
fi
99

10+
AGGREGATOR_PROVER_ROUTE="/proof/cardano-transaction"
11+
1012
# Check if all env vars are set
1113
if [ -z "${AGGREGATOR_ENDPOINT}" ]; then
1214
echo "Missing environment variable: AGGREGATOR_ENDPOINT" >/dev/stderr
@@ -76,7 +78,7 @@ RUN_STRESS_TEST() {
7678
TMP_FILE="test.tmp"
7779
echo ">> [#$INDEX_RUN/$TOTAL_RUN] Running stress test with $AB_TOTAL_REQUESTS requests with $TRANSACTIONS_PER_REQUEST transactions per request and $AB_CONCURRENCY concurrency"
7880
TRANSACTIONS_LIST=$(head -n $TRANSACTIONS_PER_REQUEST "$TRANSACTIONS_FILE" | tr "\n" ",")
79-
AGGREGATOR_PROVER_URL="$AGGREGATOR_ENDPOINT/proof/cardano-transaction?transaction_hashes=$TRANSACTIONS_LIST"
81+
AGGREGATOR_PROVER_URL="${AGGREGATOR_ENDPOINT}${AGGREGATOR_PROVER_ROUTE}?transaction_hashes=$TRANSACTIONS_LIST"
8082
if ab -n $AB_TOTAL_REQUESTS -c $AB_CONCURRENCY -s "$AB_TIMEOUT" "$AGGREGATOR_PROVER_URL" > $TMP_FILE ; then
8183
REQUESTS_PER_SECOND=$(cat $TMP_FILE | awk '/Requests per second:/ {print $4}')
8284
if [[ $INDEX_RUN -eq 1 ]] ; then
@@ -100,14 +102,15 @@ AB_CONCURRENCY_RANGE_LENGTH=$(( $(echo "$AB_CONCURRENCY_RANGE" | grep -o " " | w
100102
TOTAL_RUN=$(( TRANSACTIONS_PER_REQUEST_RANGE_LENGTH * AB_CONCURRENCY_RANGE_LENGTH ))
101103
echo ""
102104
echo "Run aggregator prover benchmark with:"
103-
echo ">> Aggregator endpoint: [$AGGREGATOR_ENDPOINT]"
104-
echo ">> Transactions file: [$TRANSACTIONS_FILE]"
105+
echo ">> Aggregator endpoint: $AGGREGATOR_ENDPOINT"
106+
echo ">> Aggregator route: $AGGREGATOR_PROVER_ROUTE"
107+
echo ">> Transactions file: $TRANSACTIONS_FILE"
105108
echo ">> Transactions available: [$TRANSACTIONS_AVAILABLE]"
106109
echo ">> Transactions per request range: [$TRANSACTIONS_PER_REQUEST_RANGE]"
107110
echo ">> AB concurrency range: [$AB_CONCURRENCY_RANGE]"
108111
echo ">> AB total requests per run: [$AB_TOTAL_REQUESTS]"
109-
echo ">> AB total runs: [$TOTAL_RUN]"
110-
echo ">> Output file: [$OUT_FILE]"
112+
echo ">> AB total runs: $TOTAL_RUN"
113+
echo ">> Output file: $OUT_FILE"
111114
echo ""
112115

113116
INDEX_RUN=1

0 commit comments

Comments
 (0)