[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 04/11: start a new wallet for each iteration
From: |
gnunet |
Subject: |
[taler-wallet-core] 04/11: start a new wallet for each iteration |
Date: |
Thu, 18 Nov 2021 13:52:40 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository wallet-core.
commit 8d9386ac008e9d095867433bfc789d09bd93414d
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Wed Nov 3 16:20:55 2021 +0100
start a new wallet for each iteration
---
packages/taler-wallet-cli/src/bench1.ts | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/packages/taler-wallet-cli/src/bench1.ts
b/packages/taler-wallet-cli/src/bench1.ts
index 6a1e0d91..448dc913 100644
--- a/packages/taler-wallet-cli/src/bench1.ts
+++ b/packages/taler-wallet-cli/src/bench1.ts
@@ -41,12 +41,6 @@ export async function runBench1(configJson: any):
Promise<void> {
const myHttpLib = new NodeHttpLib();
myHttpLib.setThrottling(false);
- const wallet = await getDefaultNodeWallet({
- // No persistent DB storage.
- persistentStoragePath: undefined,
- httpLib: myHttpLib,
- });
- await wallet.client.call(WalletApiOperation.InitWallet, {});
const numIter = b1conf.iterations ?? 1;
const numDeposits = b1conf.deposits ?? 5;
@@ -54,6 +48,17 @@ export async function runBench1(configJson: any):
Promise<void> {
const withdrawAmount = (numDeposits + 1) * 10;
for (let i = 0; i < numIter; i++) {
+
+ // Create a new wallet in each iteration
+ // otherwise the TPS go down
+ // my assumption is that the in-memory db file gets too large
+ const wallet = await getDefaultNodeWallet({
+ // No persistent DB storage.
+ persistentStoragePath: undefined,
+ httpLib: myHttpLib,
+ });
+ await wallet.client.call(WalletApiOperation.InitWallet, {});
+
await wallet.client.call(WalletApiOperation.WithdrawFakebank, {
amount: b1conf.currency + ":" + withdrawAmount,
bank: b1conf.bank,
@@ -74,9 +79,9 @@ export async function runBench1(configJson: any):
Promise<void> {
stopWhenDone: true,
});
}
- }
- wallet.stop();
+ wallet.stop();
+ }
}
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (9f0429cb -> 525fcc48), gnunet, 2021/11/18
- [taler-wallet-core] 02/11: remove string(), gnunet, 2021/11/18
- [taler-wallet-core] 01/11: update bench1 config, gnunet, 2021/11/18
- [taler-wallet-core] 06/11: added timestamps to logs, gnunet, 2021/11/18
- [taler-wallet-core] 04/11: start a new wallet for each iteration,
gnunet <=
- [taler-wallet-core] 03/11: disable throttling for bench1, gnunet, 2021/11/18
- [taler-wallet-core] 05/11: added some logging messages, gnunet, 2021/11/18
- [taler-wallet-core] 08/11: update time calculation, gnunet, 2021/11/18
- [taler-wallet-core] 07/11: timeEnd, gnunet, 2021/11/18
- [taler-wallet-core] 09/11: purge wallet after a specified amount of iterations, gnunet, 2021/11/18
- [taler-wallet-core] 11/11: Merge benchmark implementation for Grid5000, gnunet, 2021/11/18
- [taler-wallet-core] 10/11: fix wallet.stop, gnunet, 2021/11/18