config.yaml 文件
config.yaml
是 Caliper 的主配置文件,通常包含以下内容:
test: name: fisco-bcos-test # 测试名称 description: Performance test of FISCO-BCOS # 测试描述 workers: type: local # 工作进程类型 number: 5 # 工作进程数量 monitor: type: - docker - process interval: 1 # 监控间隔(秒) rounds: - label: query description: Test query performance txNumber: 1000 # 交易总数 rateControl: type: fixed-rate opts: tps: 100 # 目标TPS workload: module: path/to/workload.js # 工作负载模块 arguments: contractId: helloworld function: query
config.yaml 与 fisco-bcos.json 的关系
-
分工不同:
-
</config.yaml
: 定义测试流程、工作负载、监控等测试相关配置
-