summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-12-09 10:39:50 +0100
committerFlorian Dold <florian@dold.me>2021-12-09 10:39:50 +0100
commitdbfc599540b21da399d94a966ac85b00b339b31a (patch)
treeac1fcf355b5180fd7df115c9673903cf852c0d24 /packages/taler-wallet-cli
parent684c53e105e2d4b4e07811423e409ff4735e7297 (diff)
downloadwallet-core-dbfc599540b21da399d94a966ac85b00b339b31a.tar.gz
wallet-core-dbfc599540b21da399d94a966ac85b00b339b31a.tar.bz2
wallet-core-dbfc599540b21da399d94a966ac85b00b339b31a.zip
wallet-core: use crypto worker for eddsa signing
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/bench1.ts23
1 files changed, 13 insertions, 10 deletions
diff --git a/packages/taler-wallet-cli/src/bench1.ts b/packages/taler-wallet-cli/src/bench1.ts
index 3f3f752c2..c239a3623 100644
--- a/packages/taler-wallet-cli/src/bench1.ts
+++ b/packages/taler-wallet-cli/src/bench1.ts
@@ -38,7 +38,6 @@ import {
* set up its own services.
*/
export async function runBench1(configJson: any): Promise<void> {
-
const logger = new Logger("Bench1");
// Validate the configuration file for this benchmark.
@@ -53,26 +52,29 @@ export async function runBench1(configJson: any): Promise<void> {
const withdrawAmount = (numDeposits + 1) * 10;
- logger.info(`Starting Benchmark iterations=${numIter} deposits=${numDeposits}`);
+ logger.info(
+ `Starting Benchmark iterations=${numIter} deposits=${numDeposits}`,
+ );
let wallet = {} as Wallet;
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
+ // Create a new wallet in each iteration
+ // otherwise the TPS go down
+ // my assumption is that the in-memory db file gets too large
if (i % restartWallet == 0) {
if (Object.keys(wallet).length !== 0) {
- wallet.stop();
+ wallet.stop();
}
wallet = await getDefaultNodeWallet({
// No persistent DB storage.
persistentStoragePath: undefined,
httpLib: myHttpLib,
});
+ wallet.setInsecureTrustExchange();
await wallet.client.call(WalletApiOperation.InitWallet, {});
}
-
+
logger.trace(`Starting withdrawal amount=${withdrawAmount}`);
let start = Date.now();
@@ -86,12 +88,13 @@ export async function runBench1(configJson: any): Promise<void> {
stopWhenDone: true,
});
- logger.info(`Finished withdrawal amount=${withdrawAmount} time=${Date.now() - start}`);
+ logger.info(
+ `Finished withdrawal amount=${withdrawAmount} time=${Date.now() - start}`,
+ );
for (let i = 0; i < numDeposits; i++) {
-
logger.trace(`Starting deposit amount=10`);
- start = Date.now()
+ start = Date.now();
await wallet.client.call(WalletApiOperation.CreateDepositGroup, {
amount: b1conf.currency + ":10",