diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-05-09 14:28:12 +0200 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-05-09 14:28:12 +0200 |
commit | 935a119621a9ff7a79c410d6cc1bf0c9daa89216 (patch) | |
tree | 422103e50578861d6dee9dd3226207edef5a4fa5 /packages/taler-wallet-cli/src/index.ts | |
parent | 37690dd22c1c4cd63f3fa4b1d600b3da1cbae152 (diff) | |
download | wallet-core-935a119621a9ff7a79c410d6cc1bf0c9daa89216.tar.xz |
add bench3 for zipf and random merchant selection (by id)
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 5ba6e4bf2..43bed3cc1 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -65,6 +65,7 @@ import { runBench1 } from "./bench1.js"; import { runEnv1 } from "./env1.js"; import { GlobalTestState, runTestWithState } from "./harness/harness.js"; import { runBench2 } from "./bench2.js"; +import { runBench3 } from "./bench3.js"; import { TalerCryptoInterface, TalerCryptoInterfaceR, @@ -694,6 +695,21 @@ advancedCli }); advancedCli + .subcommand("bench3", "bench3", { + help: "Run the 'bench3' benchmark", + }) + .requiredOption("configJson", ["--config-json"], clk.STRING) + .action(async (args) => { + let config: any; + try { + config = JSON.parse(args.bench3.configJson); + } catch (e) { + console.log("Could not parse config JSON"); + } + await runBench3(config); + }); + +advancedCli .subcommand("env1", "env1", { help: "Run a test environment for bench1", }) |