Skip to content

Commit

Permalink
test: GetBalance queries (#16341)
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Tronkov <[email protected]>
  • Loading branch information
vtronkov authored Nov 4, 2024
1 parent fa9c73f commit 8d67be8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class SteadyStateThrottlingTest {

private static final double PRIORITY_RESERVATIONS_CONTRACT_CALL_NETWORK_TPS = 2.0;
private static final double CREATION_LIMITS_CRYPTO_CREATE_NETWORK_TPS = 1.0;
private static final double FREE_QUERY_LIMITS_GET_BALANCE_NETWORK_QPS = 100.0;
private static final double BALANCE_QUERY_LIMITS_QPS = 10.0;

private static final int NETWORK_SIZE = REGRESSION_NETWORK_SIZE;

Expand All @@ -92,7 +92,7 @@ public class SteadyStateThrottlingTest {
private static final double EXPECTED_CONTRACT_CALL_TPS =
PRIORITY_RESERVATIONS_CONTRACT_CALL_NETWORK_TPS / NETWORK_SIZE;
private static final double EXPECTED_CRYPTO_CREATE_TPS = CREATION_LIMITS_CRYPTO_CREATE_NETWORK_TPS / NETWORK_SIZE;
private static final double EXPECTED_GET_BALANCE_QPS = FREE_QUERY_LIMITS_GET_BALANCE_NETWORK_QPS / NETWORK_SIZE;
private static final double EXPECTED_GET_BALANCE_QPS = BALANCE_QUERY_LIMITS_QPS / NETWORK_SIZE;
private static final double TOLERATED_PERCENT_DEVIATION = 7;
private static final String SUPPLY = "supply";
private static final String TOKEN = "token";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,22 @@
{
"opsPerSec": 100,
"operations": [
"CryptoGetAccountBalance",
"TransactionGetReceipt"
]
}
]
},
{
"name": "BalanceQueryLimits",
"burstPeriod": 1,
"throttleGroups": [
{
"opsPerSec": 10,
"operations": [
"CryptoGetAccountBalance"
]
}
]
}
]
}

0 comments on commit 8d67be8

Please sign in to comment.