-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Labels
bugSomething isn't workingSomething isn't workingcomponent/coreRelated to the core code-baseRelated to the core code-base
Milestone
Description
Try to use record-rate in Caliper v0.4.2 testing fabric, but get errors.
Context
I wrote the config according to the samples in doc, but it doesn't work. I'm testing fabric using caliperv0.4.2
Actual Behavior
I get errors:
Possible Fix
Would you please update the part of doc? How to use record-rate and replay-rate in v0.4.2.
Steps to Reproduce
- wrote the benchmarkconfig.yaml
test:
name: basic-contract-benchmark
description: test benchmark
workers:
type: local
number: 4
rounds:
- label: 50TpsAsset
description: Read asset benchmark
txDuration: 10
rateControl: {
"type": "record-rate",
"opts": {
"rateController": {
"type": "fixed-rate",
"opts": {"tps" : 100}
},
"pathTemplate": "../tx_records_client<C>_round<R>.txt",
"outputFormat": "TEXT",
"logEnd": true
}
}
workload:
module: workload/readAsset.js
arguments:
assets: 10
contractId: basic
2.run caliper npx caliper launch manager --caliper-workspace ./ --caliper-networkconfig ./networks/networkConfig.yaml --caliper-benchconfig ./benchmarks/benchmarkconfig.yaml --caliper-flow-only-test --caliper-fabric-gateway-enabled
3.get error:

Your Environment
- Version used: Caliper v0.4.2(installed via npm) fabirc2.0.0
- Environment name and version (e.g. Chrome 39, node.js 5.4):
- Operating System and version : Ubuntu20.04/16.04 amd64
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcomponent/coreRelated to the core code-baseRelated to the core code-base