summaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/bench2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/bench2.ts')
-rw-r--r--packages/taler-harness/src/bench2.ts19
1 files changed, 12 insertions, 7 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts
index 35c12b2d4..90924caec 100644
--- a/packages/taler-harness/src/bench2.ts
+++ b/packages/taler-harness/src/bench2.ts
@@ -27,17 +27,20 @@ import {
} from "@gnu-taler/taler-util";
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
import {
+ applyRunConfigDefaults,
+ CryptoDispatcher,
+ SynchronousCryptoWorkerFactoryPlain,
+ Wallet,
+} from "@gnu-taler/taler-wallet-core";
+import {
checkReserve,
createTestingReserve,
- CryptoDispatcher,
depositCoin,
downloadExchangeInfo,
findDenomOrThrow,
refreshCoin,
- SynchronousCryptoWorkerFactoryPlain,
- Wallet,
withdrawCoin,
-} from "@gnu-taler/taler-wallet-core";
+} from "@gnu-taler/taler-wallet-core/dbless";
/**
* Entry point for the benchmark.
@@ -65,6 +68,8 @@ export async function runBench2(configJson: any): Promise<void> {
const reserveAmount = (numDeposits + 1) * 10;
+ const defaultConfig = applyRunConfigDefaults();
+
for (let i = 0; i < numIter; i++) {
const exchangeInfo = await downloadExchangeInfo(benchConf.exchange, http);
@@ -87,7 +92,7 @@ export async function runBench2(configJson: any): Promise<void> {
console.log("reserve found");
const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8` as AmountString, {
- denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
+ denomselAllowLate: defaultConfig.testing.denomselAllowLate,
});
for (let j = 0; j < numDeposits; j++) {
@@ -116,10 +121,10 @@ export async function runBench2(configJson: any): Promise<void> {
const refreshDenoms = [
findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, {
- denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
+ denomselAllowLate: defaultConfig.testing.denomselAllowLate,
}),
findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, {
- denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
+ denomselAllowLate: defaultConfig.testing.denomselAllowLate,
}),
];